mac-s-g / react-json-view

JSON viewer for react
https://mac-s-g.github.io/react-json-view/demo/dist/
MIT License
3.42k stars 530 forks source link

Consider accepting string formatted in JSON instead of JavaScript object for src #459

Open renamartins opened 5 months ago

renamartins commented 5 months ago

Consider also accepting a string in JSON format instead of one having to JSON.parse(theJsonString) beforehand.

Karanpal97 commented 4 months ago

@renamartins hey i used the lib but it have the issue the issue is when i send the data in string and when i parse it before sending source that is by JSON.parse then the collapsing functionallty is not working ??