This project has moved and is read-only. For the latest updates, please go here.

XML to JSON - JSON string is not well-formed.

Jan 4, 2012 at 3:10 PM
Edited Jan 4, 2012 at 3:11 PM

I used JsonConvert and XMLDocument to convert XML to JSON in VB.Net... the code works properly without any error and the JSON is returned well too.

However, the output generated by JSONConvert is not well-formed; I mean it doesn't have the proper indentation. I had to use Online JSON formatting service to see the generated JSON in proper indented form. Am I missing something? Is there any other way to do it right and get JSON in well-formatted manner?

-- Ruturaaj.