JSON.stringify spacer needs to be third parameter when using json2.js #16

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

jdaley commented Jun 28, 2013

This fixes an error when Breeze's exportMetadata calls JSON.stringify when json2.js is used.

JSON.stringify syntax according to Mozilla is:

JSON.stringify(value[, replacer [, space]])

If you try to pass in space without also passing in replacer, I guess it works in most implementations, but json2.js for one will throw an error.

See also
http://stackoverflow.com/a/17342752/31563

Thanks, this will go into the next release.

Owner

jtraband commented Jul 12, 2013

Thanks!, this will go into the next release

jtraband closed this Jul 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment