Skip to content

Issue with serializing circular references #769

Closed Answered by caugner
codersjj asked this question in Content
Discussion options

You must be logged in to vote

When serializing an array, properties on the array are ignored, so in your case the empty array is serialized as [], so the self-reference causes no issues, see: https://developer.mozilla.org/en-US/play?id=vSKVZUPzRAXKbEAHdrKm1tRhxnGvKg9CFup9xvCCdz3%2BNRh8QLmsooBoxHvEAYRGlaFWGp3Xkq0U3QRO

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@codersjj
Comment options

Answer selected by codersjj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants