tags:

views:

758

answers:

3

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).

A: 

Have you looked at http://www.json.org/?

Sinan Ünür
+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
+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