justinpombrio / synless

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

Preserve order of json keys and don't delete duplicates #113

Open e-matteson opened 3 weeks ago

e-matteson commented 3 weeks ago

When we load a json file, the keys get alphabetized and duplicates get deleted. The deduplication is especially bad because if multiple entries have holes instead of keys, they will be treated as duplicates.

I don't think serde lets you configure that behavior, so we may need to provide our own deserialization implementation for serde, or switch to a different parser.