Skip to main content

Using a JSONFormatter (pretty) and JSON Writer in series, the output file contains literally the characters \\r\\n with no actual line returns. Snippet of the output:

"_formatted":"{\\r\\n \\"request\\" : [\\r\\n {\\r\\n \\"addDate\\" : \\"/Date(1449794160000-0600)/\\",......

Connecting an Inspector to the to the formatter works as expected.

I should mention that I am using the 2016.1 Beta version (for the Elasticsearch goodness it contains.)

Hi @t1, looks like you have written the entire json document as a string value of a json object member. If you need to write the formatted json document as a json document, you can use the Text File writer, rather than the JSON writer.


Hi @t1, looks like you have written the entire json document as a string value of a json object member. If you need to write the formatted json document as a json document, you can use the Text File writer, rather than the JSON writer.

Makes perfect sense now... JSON writer saves attributes as JSON. I just needed to dump my JSON doc to a text file.


Reply