Skip to content

Support for circular structures #112

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

Open
pcafstockf opened this issue Jan 11, 2020 · 1 comment
Open

Support for circular structures #112

pcafstockf opened this issue Jan 11, 2020 · 1 comment
Labels

Comments

@pcafstockf
Copy link

While JSON doesn't support circular structures, this project's description "... selectively extract data from JSON documents (and JavaScript objects)." does include "JavaScript objects". :-)

In my case, a hacked replacement of JSONPath.prototype._walk served my needs (searching an AST) and allowed me to use this great library.
However, more flexible/official support would be nice.

@errodrigues
Copy link

I'm facing this issue as well, and getting

[ ERROR ] UnexpectedAuditFailure: Maximum call stack size exceeded - RangeError: Maximum call stack size exceeded
        at /test/js/core/node_modules/jsonpath-plus/dist/index-node-cjs.cjs:586:7
        at Array.forEach (<anonymous>)
        at JSONPath.Object.<anonymous>.JSONPath._walk (/test/js/core/target/node_modules/jsonpath-plus/dist/index-node-cjs.cjs:585:22)
        at JSONPath.Object.<anonymous>.JSONPath._trace (/test/js/core/target/node_modules/jsonpath-plus/dist/index-node-cjs.cjs:429:10)
       (...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants