simone-sanfratello / json-stringify-extended

JSON.stringify any data types
17 stars 1 forks source link

Circularity messes up valid array references #1

Closed haifeng239 closed 6 years ago

haifeng239 commented 6 years ago
  var list = ['a', 'b', 'c'];
  const data = [
    {a: list},
    {b: list}
  ];

fails and says it's a circular reference

simone-sanfratello commented 6 years ago

Thank you for reporting this issue, I'm going to solve asap

simone-sanfratello commented 6 years ago

Hello, fixed in version 1.0.0, please let me know if it works for you

haifeng239 commented 6 years ago

Looks good. Thanks 👍