databendlabs / jsonb

JSONB implement in rust
Apache License 2.0
65 stars 11 forks source link

Conflicts caused by "preserve_order" feature of serde_json #55

Closed CookiePieWw closed 1 month ago

CookiePieWw commented 2 months ago

Hi! I'm trying to introduce jsonb into a project (see GreptimeTeam/greptimedb#4619), but the project relies on the non-preserve-order nature of serde_json, which conflicts with jsonb. I've noticed that the feature is used to preserve the order of json objects in conversions, while the order of objects is not guaranteed according to RFC. Are there other things relying on it?

I wonder if it's proper to put a trigger on the feature as what serde_json does for better compatibility. If so, I'd like to submit a patch for it :)