react-json-viewer
v3.0.1
Published
React JSON Viewer Component. View JSON in beautiful tabular format.
Downloads
18,151
Readme
react-json-viewer
React JSON Viewer Component. View JSON in beautiful tabular format.
Install
npm install --save react-json-viewer
Usage
import React, { Component } from 'react';
import JSONViewer from 'react-json-viewer';
class Example extends Component {
render() {
return (
<JSONViewer
json={[
{
task: 'Learn React',
done: true,
},
{
task: 'Write Book',
done: false,
},
]}
/>
);
}
}
Demo
http://nsisodiya.github.io/react-json-viewer
JSFiddle Example
http://jsfiddle.net/nsisodiya/61fwqcg5/
What
License
MIT © nsisodiya