justinpombrio / synless

Synless is a language-agnostic tree editor.
20 stars 2 forks source link

Json keys should not be reordered or deduplicated #116

Closed e-matteson closed 2 days ago

e-matteson commented 2 days ago

When synless loads a json file, the serde json parser:

Loading and saving a file should modify it as little as possible. The deduplication is especially bad because if multiple entries have holes instead of keys, they will be treated as duplicates.

We'll probably need to stop using serde json, or provide our own deserialization implementation for serde.

e-matteson commented 2 days ago

Issue is a duplicate of https://github.com/justinpombrio/synless/issues/113