YYsuni / react18-json-view

JSON viewer for react18
https://jv.yysuni.com/
MIT License
273 stars 24 forks source link

Nested JSON Issue #30

Open dhpcc opened 9 months ago

dhpcc commented 9 months ago

Hi,

Thank you very much for taking the time to make this library. I appreciate it. I attempted to integrate it into my application and I'm having an issue with nested JSONs. How can I ensure that these nested JSONs are handled properly and become part of the tree structure? Here is an image showing the current structure of the tree. Please let me know if you require any additional information from me. Any help at all is greatly appreciated.

Screenshot 2024-01-24 at 2 55 59 PM

Thank you, dhpcc

YYsuni commented 9 months ago

Oh, you could use the custom node property, and if the params.name === EVENTDATA then return new <jsonview/>. Or, you could preprocess the data, it will be better.