Created on 17 June 2015
icon_unfollowing
Login to follow
json-pretty-format

JSON Pretty Format

icon_trusted
Stable version 3.0.4 (Compatible with OutSystems 11)
Other versions available for 10 and Older
Uploaded on 28 May 2021 by 
json-pretty-format

JSON Pretty Format

Details
A simple component that allows to Pretty Print JSON format
Read more

Reactive version here.

The component allows the following prettify options:


  • Allow root node to be collapsable;
  • JSON starts collapsed;
  • Allow links to be clickable on JSON;



Credits to abodelot (https://github.com/abodelot/jquery.json-viewer)

Release notes (3.0.4)
  • Sanitization of JavaScript code on the component's web block;
  • Errata fixed;
Reviews (1)
by 
2021-05-14
in version 3.0.2
Hi Pedro, thank you for this component it was very useful for my 1st full project as a trainee!
I discovered a small problem with the css though and thought I should share how I fixed it!
As you can see in these screen shots - https://imgur.com/a/vME2Vpn - one of the strings was too long for the screen, it didn't wrap well.
I added the following property:

.json-string {
  color: #0B7500;
  white-space: normal;
}

It was a quick fix you might want to implement :)
Category
Functional libraries & utilities, Other functions & libraries
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
JSON Pretty Format has no dependencies.
Application Objects
JSON Pretty Format has 0 AOs.
Team
Compatible with
Version 11
Database:
All
Asset consumers
No consumers yet.
Weekly downloads