Files
2016-03-06 20:52:14 +01:00

18 lines
489 B
Plaintext

/*
n_Json v11.3.21
Notes:
-In DM, lists in which all keys are associated with null are indistinguishable from non-associative lists.
Because of this, JSON such as this: {object: {a: null, b: null, c: null}} will be converted to an array:
{object:["a","b","c"]}.
*/
proc
json2list(json)
var/static/json_reader/_jsonr = new()
return _jsonr.ReadObject(_jsonr.ScanJson(json))
list2json(list/L)
var/static/json_writer/_jsonw = new()
return _jsonw.WriteObject(L)