Skip to content

More formatting options for serialization #4

@spyoungtech

Description

@spyoungtech

Right now, serialization supports some basic configuration of the key/item separators (e.g., for compact formatting) as well as for indent level/pretty printing, similar to capabilities offered by serde_json.

However, I want to add more flexibility to this including:

  1. Preference of quote character (single quote or double quotes) for string values
  2. Ability to prefer bare unquoted identifiers for object keys
  3. Possibly some way to control serialization of number values (e.g., convert floats to integers when no loss would occur)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions