Re: json
- Posted by bugmagnet Aug 05, 2012
- 2534 views
CoJaBo2 said...
The only way this can work reliably at all is with explicit typing, e.g., using the method above.
So doing this?
IN: {"key1" : {"array" : [1,2,3]}, "boolean" : false} OUT: {JSON_RECORD, { {JSON_STRING, "key1"}, {JSON_RECORD, { {JSON_STRING, "array"}, {JSON_ARRAY, { {JSON_NUMBER, 1}, {JSON_NUMBER, 1}, {JSON_NUMBER, 1} } } } }, {JSON_STRING, "boolean"}, {JSON_BOOLEAN, 0} } }