This python snippet wouldn't round trip if simd-json was used:
import json
obj = {c: None for c in "abcdefghijklmnopqrstuvwxyz1234567"}
s = json.dumps(obj)
assert json.loads(s) == obj
This is because Object uses a hashmap which doesn't preserve the order of the json string keys. This can be resolved by using
I would like to consider using indexmap, which has excellent performance, AND guarantees index order.
This issue was discovered in: pola-rs/polars#17439
If this is accepted, I am willing to make a PR.