Skip to content

Store JSON content as it is #1215

@ikhoon

Description

@ikhoon

When a JSON file is committed to Central Dogma, the content is normalized by Jackson. The approach has a few drawbacks.

  • Depending on how ObjectMapper is configured, the field order may change, which makes it harder to compare with the original file.
  • If comments are removed during Jackson's normalization process, it makes supporting JSON5 difficult.

For that reason, I suggest storing the original file as it is. The previous motivation for normalizing content was to reduce diff sizes used for replication, but this can be addressed through compression instead. #1192

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions