Closed npoy closed 7 years ago
The reason it got indented is because of your []. It thinks that they are arrays. If you remove the brackets, it should work properly.
Thanks,
I think that is an error because the indenter function is trying to prettify a string. I had to use another tool to indent the json and it works fine. So, i think that remove [] is not a solution because it happens with {} and commas too.
Thanks,
You are correct. I will try to remove the prettify from a regular string i guess.
Did the changes helped? I have not updated the nuget package since it is too soon because I just updated it not too long ago. Wanted to wait for a major change first.
Thanks for your help man, its working now, I will wait for the nuget update but i can use your source for a while.
Ty Bye.
Hi, triying to indent my json i used the NETJsonSetting "NetJSONFormat.Prettify" but that destroys my jsonFile when serialize an specific string value:
String value: "Data Source=[DataSource,];Initial Catalog=[Database,];User ID=[User,];Password=[Password,];Trusted_Connection=[TrustedConnection,False]"
Image before:
Image after:
I think that is an error because i had to use other solution to indent my json after the serialization..
Ty, bye!