Answer the question
In order to leave comments, you need to log in
Simple libraries for editing JSON in React.js?
Hello, I am looking for a convenient library for editing JSON files for React.js. The main possibility is to make Ctrl + C from the file and Ctrl + V to "input", which will be very similar to the one, say, in Atom or VSC, not only externally, but also in features: tabulation, correct nesting formatting, etc. .P.
I rummaged through a bunch of libraries in npm about this, but there are a lot of dependencies and unnecessary functionality that drag along with them.
An example of libraries that are not suitable at all: react-json-editor-ajrm, react-json-editor-viewer (there is no possibility of editing, it is logical), react-json-view (due to the general incomprehensibility of how to insert jason there, how to remove half of the content ).
Answer the question
In order to leave comments, you need to log in
I once did a similar functionality, but I didn’t look specifically for react, but simply wrote my simple wrapper (react component), in which I initiated a library for working with json in componentDidMount:
https://github.com/josdejong/jsoneditor
it is flexible and has all the functionality you need
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question