JSON mode shows the json in one line.
See original GitHub issueimport 'brace/mode/json';
<ReactAce mode='json' value={JSON.stringify(jsonObject)} theme='github' />
The entire json is shown in 1 line and with no formatting.
What option should enable formatting of the jsonObject?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
JSON output is putting all lines in one line - Stack Overflow
The problem I am having is that it somehow adds all the lines from the txt file in one very long line in...
Read more >JSON Lines
JSON Lines is a convenient format for storing structured data that may be processed one record at a time. It works well with...
Read more >Json Format To One Line - ITALCOLLAUDI
Json Format To One LineYou should now see the output JSON in one single line. Once copied, click the "convert" option to convert...
Read more >JSON file | Databricks on AWS
You can read JSON files in single-line or multi-line mode. In single-line mode, a file can be split into many parts and read...
Read more >PySpark Read JSON file into DataFrame - Spark by {Examples}
PySpark SQL provides read.json("path") to read a single line or multiline (multiple lines) JSON file into PySpark DataFrame and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@id0Sch I think
value
is a string? If so you could try parsing it first:JSON.stringify(JSON.parse(value), null, 2)
Scratch that.
JSON.stringify(jsonObject, null, 2)
solves it.