I\'m using ReactJS and part of my app requires pretty printed JSON.
I get some JSON like: { \"foo\": 1, \"bar\": 2 }, and if I run that through
{ \"foo\": 1, \"bar\": 2 }
The 'react-json-view' provides solution rendering json string.
import ReactJson from 'react-json-view';