Better display of structured data (copy JSON?)

26 views
Skip to first unread message

Emiliano Parizzi

unread,
Mar 6, 2015, 11:45:50 AM3/6/15
to get...@googlegroups.com
Displaying an object that was logged using Serilog @object functionality is hard to read.

Like for example a REST request response: http://i.imgur.com/OVuZsgX.png

Impossible to read.

Could you provide a better way of displaying structured data?


An easy way would be to provide a little button/icon that would call

JSON.stringify()

on the data and copy the result. That way we could have a valid JSON representation of the data and use any of the online JSON parsers to view it properly.

Thanks

nblum...@nblumhardt.com

unread,
Mar 7, 2015, 10:02:00 PM3/7/15
to get...@googlegroups.com

Hi Emiliano,

We'd love to provide some more flexibility around this sometime down the track; for now, the "Raw JSON" link seems to do pretty much what you suggested:

Though, this will give you the full event rather than just one property of interest.

Hope this helps!

Nick

Emiliano Parizzi

unread,
Mar 10, 2015, 11:47:42 AM3/10/15
to get...@googlegroups.com
Oh, I totally missed that Raw JSON link. 

It would be good if it show directly in the browser instead of asking to download it to disk.

Thanks 
Reply all
Reply to author
Forward
0 new messages