Minimalist package which makes possible for you to display your JSON as a element on your React App, personalizing the colors.
npm install --save react-prettify-json
You can use that above and you're done. But, if you want a little more customization, you can set your own colors
And achieve a result like this (photo took directly from my portfolio)
If a prop is Required, the
default field will appear empty.
|jsonObject||json object (pls)||The json object that you want styled||--|
|colors||object: punctuation, key, value, string||Each color variable corresponds to each one of JSON data types||everything black|
MIT © Bruno De Masi