Two small twin libraries that are mostly a wrapper over a well known code for encoding/decoding JSON and XML structures. Also indents the output. A nice application is in http handlers for decoding input parameters and encode the results.
The test files show how to use. Projects are here:
Enjoy.