react-json-dom

A simple component which takes in an object and shows it in json format

Usage no npm install needed!

<script type="module">
  import reactJsonDom from 'https://cdn.skypack.dev/react-json-dom';
</script>

README

json-tree

A simple component which you can use to show what json looks like.

Demo screenshot

import JsonTree from 'react-json-dom';

let testObj = {
  arg1: 'val1',
  arg2: {
    arg21: {
      arg211: 'val211'
    },
    arg22: 'val22'
  },
  arg3: 3
}

<JsonTree jsonObject={testObj} />