proc/get_value(json)
var/json_reader/reader = new()
reader.tokens = reader.ScanJson(json)
reader.i = 1
return reader.read_value()
Where json is any value: an array, a number, an object, a string, true, false, or null. This is not the way the library is meant to be used, so I will probably add better support for what you're trying to do in the future.
For list: foo=bar
It will produce: {foo:"bar"}
This is missing the double quotes around the key (foo).
You can fix it by just modifying WriteObject() in JSON Writer.dm (put quotes around [k]).
Good job I guess.