I came across How to convert XML to JSON in ASP.NET C# (link) and one in javascript (at goessner.net/download/prj/jsonxml/). But have yet to find one in c++ that takes just a string as input (Or a tinyxml node as I'm using that library).
+1
A:
Please head to http://json.org. You may find something of interest there. It lists many libraries available for JSON processing in C++ and many other languages.
But for the thing you linked to [pdhcc] you may have to do some work yourself to port it to C++.
TheVillageIdiot
2009-06-23 01:36:23
+1
A:
Ideally this would be done using XSLT instead writing a translator in C++/C#. You can find some solutions online (for example this one).
However, if you would prefer to do it in C++ then I recommend the jsoncpp library.
StackedCrooked
2009-06-23 09:01:06