You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I wondered if you compared the performance of your lib against using the "canonical" option I added to jsone? Which provide a canonical form of son that can be use for hashing.
Also can you describe the way you're creating a sorted JSON? what are the properties you're taking care ?
The text was updated successfully, but these errors were encountered:
The main goal of this project was to have stable/ordered/predictable output by default for use in cryptography operations and for it to be useful as a drop-in replacement to devinus/poison for Elixir as well as for Erlang projects.
I wasn't aware of the canonical_form option and I don't think it was yet implemented back when I added jsone as a JSON adapter to jose.
However, jsone definitely has a faster implementation. I looked into a few of the JSON libraries already out there before writing ojson, but there are a few behavioural differences in jsone that I wish weren't present on the implementation side of things, like ignoring garbage data after a valid JSON term:
For Elixir users, there are also a few things missing from jsone currently that would make it more "friendly" or compatible with Poison as a drop-in replacement. Streaming support is also absent from both libraries, but present in jsx. I'm rambling a little now, but hopefully that explains what my intent was for ojson.
Hi I wondered if you compared the performance of your lib against using the "canonical" option I added to jsone? Which provide a canonical form of son that can be use for hashing.
Also can you describe the way you're creating a sorted JSON? what are the properties you're taking care ?
The text was updated successfully, but these errors were encountered: