Skip to content

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

Closed
@sandgupta23

Description

@sandgupta23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions