facebook-csharp-sdk/simple-json

Serialize in a friendly format

ygoe opened this issue · 0 comments

ygoe commented

Serialization always seems to produce a single line of JSON content. While this may de desirable for network transfers towards machines, it's not useful for writing JSON files that should be readable by humans. Is it possible to format the serialized string with multiple lines, like for example XmlWriterSettings allows it for XML?

Instead of this

{"key":["value1","value2"]}

I'd like to see this

{
  "key": [
    "value1",
    "value2"
  ]
}