use JSON.stringify to format JSON instead of using CodeMirror