Skip to content

Instantly share code, notes, and snippets.

@jmibanez
Created September 1, 2012 15:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmibanez/3576746 to your computer and use it in GitHub Desktop.
Save jmibanez/3576746 to your computer and use it in GitHub Desktop.
Stringify edge case
var a = {
'key' : 'value',
'foo' : 'bar'
};
var b = {
'foo' : 'bar',
'key' : 'value'
};
JSON.stringify(a) === JSON.stringify(b) /* FALSE */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment