I JSON.stringify a json object by
JSON.stringify
result = JSON.stringify(message, my_json, 2)
The 2 in the argument above is su
2
print the state of a component with JSX
render() { return ( Adopt Me! {JSON.stringify(this.state, null, 4)} ); }
{JSON.stringify(this.state, null, 4)}
stringify