Trying to write an Angular 2 pipe that will take a JSON object string and return it pretty-printed/formatted to display to the user.
For example, it would take this:
I would like to add an even simpler way to do this, using the built-in json pipe:
json
{{data | json}}
This way, the formatting is preserved.