uiwjs / react-json-view

A React component for displaying and editing javascript arrays and JSON objects.
https://uiwjs.github.io/react-json-view/
MIT License
212 stars 12 forks source link

Editable JSON #22

Open Djboy08 opened 11 months ago

Djboy08 commented 11 months ago

Does this library not support editable json?

My use case is I want the end-user to be able to edit the JSON and save it later but the only thing I could see is "contentEditable". But this realistically is not what I want since that gives too much control and allows them to basically just type text.

jaywcjlove commented 11 months ago

@Djboy08 1.0 supports editing functions, 2.0 is still under study, and development is still in progress.

Djboy08 commented 11 months ago

Is the rows virtualized too? Every react json editor I come across is not virtualized, thus causing a massive data output to lag the browser.

jaywcjlove commented 11 months ago

@Djboy08 Virtualization is not supported, can an option be added to load more?

Djboy08 commented 11 months ago

This is very unfortunate, it seems all the editable react components out there just are not virtualized and its a shame.

In my case loading more could have many different ways to implement. All of which that is bad UX/UI. It seems I may just go for a monaco editor as a JSON editor as that can support a massive json, all of which is expanded without the browser dying

mikeyaa commented 9 months ago

+1 for editing on v2.0

brunitob commented 7 months ago

+1 for editing on v2.0 🤝

ethndotsh commented 6 months ago

+1 for editing on v2.0

shin616122 commented 2 months ago

Any timeline for this?.. Not sure if I should downgrade to 1.0.0 to use editable json or not...

jaywcjlove commented 2 months ago

@shin616122 I don’t have time to plan the release of version 2.0 right now, but I’ll continue to maintain it. If I’m interested, I might add the editing feature. Due to life circumstances, I’m developing some macOS applications to make a living, so I don’t have any immediate plans for this component’s editing feature as it’s more complex.

shin616122 commented 2 months ago

@jaywcjlove Ok understood Thank you for the update!