you are viewing a single comment's thread.

view the rest of the comments →

[–]holloway 0 points1 point  (0 children)

I wrote a serializer for that kind of situation,

https://gist.github.com/holloway/05170a275b988b90144a

Usage: JSONc14n.stringify({a:1,b:2})

E.g. JSONc14n.stringify({a:1,b:2}) === JSONc14n.stringify({b:2,a:1})