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


Author
Message
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.2K, Visits: 4.3K
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
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.2K, Visits: 4.3K
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
Michael Taylor
Michael Taylor
New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)
Group: Forum Members
Posts: 3, Visits: 12
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.
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.2K, Visits: 4.3K
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
Michael Taylor
Michael Taylor
New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)
Group: Forum Members
Posts: 3, Visits: 12
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)


Michael Taylor
Michael Taylor
New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)
Group: Forum Members
Posts: 3, Visits: 12
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Login

Explore
Messages
Mentions
Search