Skip to content
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

ngx-json-viewer not rendering when complex/cyclic JSON is used. #23

Closed
sandgupta23 opened this issue Jun 2, 2019 · 0 comments · May be fixed by #28
Closed

ngx-json-viewer not rendering when complex/cyclic JSON is used. #23

sandgupta23 opened this issue Jun 2, 2019 · 0 comments · May be fixed by #28

Comments

@sandgupta23
Copy link

Summary

When some complex cyclic JS object is passed, it doesn't show anything.


Details

data = {
    "_this": new AppComponent(), //<== cyclic
    "name":"AppComponent"
  };

Expectaion:
Either, library should ignore data._this or show it to some depth. In both the cases, library must show data.name which is a primitive.

Reality:
Nothing shows up


Minimal reproduction:
stackblitz

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

Successfully merging a pull request may close this issue.

1 participant