JSON: Difference between revisions

Content added Content deleted
(→‎Java: added C after ANTLR)
m (→‎{{header|C}}: corrected my usage of "works with")
Line 131: Line 131:


{{libheader|YAJL}}
{{libheader|YAJL}}
{{works with|YAJL 2}}
{{works with|YAJL|2}}


Reads a snippet of JSON into [https://github.com/lloyd/yajl YAJL's] tree format, then walks the tree to print it back out again. The tree contains numbers both in an unparsed, string form, and also converted to long long or double when possible. The example below demonstrates both ways of dealing with numbers.
Reads a snippet of JSON into [https://github.com/lloyd/yajl YAJL's] tree format, then walks the tree to print it back out again. The tree contains numbers both in an unparsed, string form, and also converted to long long or double when possible. The example below demonstrates both ways of dealing with numbers.