Skip to content

Serialize in a friendly format #79

Description

@ygoe

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"
  ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions