JSET

JGET, JSET, and JDEL allow for working with JSON strings, see JGET

Options

JSET allows a set of options that modify its behavior:

RAW allows value to be interpreted as a serialized JSON object:

$ SET linestrings 1 OBJECT {«type»: «LineString», «coordinates»: [[0, 0], [1, 1]]} JSET linestrings 1 coordinates.-1 [2,2] RAW JGET linestrings 1 > {«type»:»LineString»,»coordinates»:[[0,0],[1,1],[2,2]]}

STR allows value to be interpreted as a string:

$ JSET test 1 properties.bool true JGET test 1 properties.bool > {«value»:true} JSET test 1 properties.bool true STR JGET test 1 properties.bool > {«value»:»true»}

EnglishРусский