Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic Class inheritance
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01611057
Message ID:
01611498
Views:
42
>Hi Viv, I'm using the crude example ( your words ) in my app to manage a list of config classes and it works absolutely fine but one of the reasons for wanting a config file was to make it easy to change settings in a text file, and whilst I can change a setting ( being very careful using Notepad ) I don't feel comfortable letting users loose on the file as the Json serializer stores the text as one long line, is there a way of doing this so that each item in the list is serialized on a seperate line ?

Try:
JsonConvert.SerializeObject(xxx, Formatting.Indented);
(Top of my head, hope it's right :-} )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform