tags:

views:

399

answers:

1

Does anyone know of an application that can be used to convert a large JSON file to XML?

We have a program that takes XML input, and we need to feed it some data that has arrived as a JSON file. Rather than update the whole program to take JSON input, it seems simpler to just convert this file.

The JSON file is between 3 and 4 GB (and that may be compresed).

TIA.

A: 

You can try JSON.org's XML class: http://json.org/javadoc/org/json/XML.html

Create a JSONObject via the JSONObject class, and convert it using the XML class. I have not tested it on large files, but it doesn't hurt to try.

Paul