# Display Formatted json String in Perspective

**URL:** <https://forum.inductiveautomation.com/t/display-formatted-json-string-in-perspective/42894>\
**Category:** Ignition\
**Created:** [February 2, 2021, 5:00pm UTC](https://forum.inductiveautomation.com/t/display-formatted-json-string-in-perspective/42894 "2021-02-02T17:00:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 2, 2021, 5:02pm UTC](https://forum.inductiveautomation.com/t/display-formatted-json-string-in-perspective/42894/3 "2021-02-02T17:02:39Z")

</div>

Some ideas in this thread:

> [@Ideal way to display objects on a screen](http://forum.inductiveautomation.com/t/ideal-way-to-display-objects-on-a-screen/41575/9):
>
> For something you can use in a script transform (though you should probably put this into a project scoped script). Also, make sure you only attempt to use it from Perspective contexts: from com.inductiveautomation.ignition.common import TypeUtilities from com.inductiveautomation.perspective.common import PerspectiveModule gson = PerspectiveModule.createPerspectiveCompatibleGson() json = TypeUtilities.pyToGson(value, gson) return "```\n{}\n```".format(gson.toJson(json)) [image] The t…

---

_[View the full topic](https://forum.inductiveautomation.com/t/display-formatted-json-string-in-perspective/42894)._
