A simple JSON Editor React Component
npm install rc-json-editorcontent-editable="true" on a code tag and allow your users to edit their JSON themselves. But the catch here is, not everyone knows the syntax of a JSON. This tool could help in that case.JsonArray which extends the Array class. So you know, it is an array of sorts, with some additional custom components.This is a in-progress doc, so please visit the JsonArrayClass.ts file for the complete implementation.
> Changes are welcome so are feedbacks.
Install the package from npm
``bash`
npm install rc-json-editor
This is a simple usage example
`jsx
import { JsonEditor } from 'rc-json-editor';
order: {
id: 'order_124831sf23j123',
isSuccess: true,
price: 70000
}
}}
onChange={() => {}}
/>
`
- A JSON that needs to be viewed/edited
- onChange - A callback that gets executed when the data` is updated
#### Storybook
Find the demo here - https://samuellawrentz.github.io/rc-json-editor/?path=/story/introduction--page
#### NPM Package
NPM package link - https://www.npmjs.com/package/rc-json-editor