LogViewPlus Support

IN JSON Pretty-Print render escaped chars in the JSON values

https://www.logviewplus.com/forum/Topic2377.aspx

By Miket - 13 Mar 2025

Would it be possible to render the escaped new line chars as new lines so that reading data that contains them is much clearer?
Currently they appear as \n and \r\n in the JSON values.
By Miket - 13 Mar 2025

i believe the list of all chars that require attention are:
  • \" (double quote)
  • \\ (backslash)
  • \/ (forward slash)
  • \b (backspace)
  • \f (form feed)
  • \n (new line)
  • \r (carriage return)
  • \t (horizontal tab)

By LogViewPlus Support - 14 Mar 2025

Hi Miket,

Thanks for the feedback.

I am not sure if this feature would be helpful for all users.  Some users just want to see the JSON values as written.  Also, if I use a sample JSON entry like:
{"Key": "\"Hello\r\n\tWorld!\"" }

I can paste that into some of the JSON pretty print tools available on line.  Some of those tools also do not escape the characters.

Thanks,

Toby
By Miket - 14 Mar 2025

I totally agree that it most other online JSON prety-print services will render the escape characters as they are within the JSON. but i'm asking if this could be added as a feature perhaps on some sort of toggle option like the word wrap feature?

Iit would make reading of things like stack traces in the logs so much easier for us. having the line breaks in the right place enhances readability no end.
By LogViewPlus Support - 15 Mar 2025

Thanks for the feedback.  I can see where this would be helpful when viewing something like stack trace.  Let me take a look and see what we can do for the next release.

Thanks again,

Toby
By LogViewPlus Support - 27 Mar 2025

Hi Michael,

I just wanted to let you know that we have now released LogViewPlus v3.1.19 as a BETA release.

This release addresses the issue with escape characters discussed above.  For this to work, you will need to opt into escape character processing.  This setting can be found under Syntax Highlights:





Hope that helps,

Toby