Answer the question
In order to leave comments, you need to log in
How to format Json object when serialized to file?
Hi, I'm having difficulty serializing to a Json file, all text goes to a string, how do I categorize it line by line? Library - Newtonsoft.Json
I would be grateful for a good example.
More or less like this:
[
{
"Enabled": true,
"Point": {
"MIP": "0.0.0.0",
"AuthServerIP": "12.112.121.21",
"AuthServerPort": 922
}
}
]
Answer the question
In order to leave comments, you need to log in
JsonConvert.SerializeObject(parsedJson, Formatting.Indented);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question