]> git.mxchange.org Git - flightgear.git/commit
JSON: make the response configurable, set encoding
authorTorsten Dreyer <torsten@t3r.de>
Fri, 7 Mar 2014 20:53:51 +0000 (21:53 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Fri, 7 Mar 2014 20:58:33 +0000 (21:58 +0100)
commited8ec8f092cadb94e5ebb4fdcdaf3102074ee31a
tree6133a9225ef6e304a2b97c5cedb68b333b7bc7d3
parentef3f0a273855f98a0e566ff5978012fb1bb6370c
JSON: make the response configurable, set encoding

add request parameter 'i' and 'd'
if i=y, indent the output to make it human readable
if i is missing or anything else, send the output unformatted to save bandwith

'd' defines recursion depth with a default of 1 to show the requested node
and the immediate childs (if it has any)

call /json/?i=y&d=999 for a complete property tree backup (use with caution!)

Also set the encoding to UTF-8 as required per RFC 4627
src/Network/http/JsonUriHandler.cxx