New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`stringify` conflates duplicates and circular references #15

Closed
kitcambridge opened this Issue Aug 17, 2012 · 2 comments

Comments

2 participants
@kitcambridge
Member

kitcambridge commented Aug 17, 2012

var S = [], N = {}
S.push(N, N)
JSON.stringify(S)
// Expected: `"[{},{}]"`. JSON 3 throws a `TypeError`.
@jdalton

This comment has been minimized.

Show comment
Hide comment
@jdalton

jdalton Aug 17, 2012

Member

Nice find!

Member

jdalton commented Aug 17, 2012

Nice find!

@kitcambridge

This comment has been minimized.

Show comment
Hide comment
@kitcambridge

kitcambridge Aug 18, 2012

Member

Prompted by a conversation and follow-up with @getify.

Member

kitcambridge commented Aug 18, 2012

Prompted by a conversation and follow-up with @getify.

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