How do I format the data from json file?

fahad kazi

New member
Apr 11, 2013
114
0
0
Visit site
I am trying to improve my app experience and have some trouble doing it. I need to know how can I format the data from json file. Actually I want to have breaks in few lines. I cannot add any tags into json file so what options do I have?
 

pdelvo

New member
Apr 2, 2014
156
0
0
Visit site
You can read it with json.net and write it again. This library allows you to set a Formatting.Indented which sould be what you are looking for
 

cuddl

New member
Jun 3, 2014
12
0
0
Visit site
Second for json.net. We've found it to be faster and more flexible than using a DataContractJsonSerializer.
 

Members online

No members online now.

Forum statistics

Threads
326,598
Messages
2,248,616
Members
428,521
Latest member
BarkerJarrod