# Ideal way to display objects on a screen

**URL:** <https://forum.inductiveautomation.com/t/ideal-way-to-display-objects-on-a-screen/41575>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 16, 2020, 5:17pm UTC](https://forum.inductiveautomation.com/t/ideal-way-to-display-objects-on-a-screen/41575 "2020-12-16T17:17:37Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [February 9, 2021, 1:21pm UTC](https://forum.inductiveautomation.com/t/ideal-way-to-display-objects-on-a-screen/41575/20 "2021-02-09T13:21:34Z")

</div>

Here is a way to do it without using an expression. @paul-griffith can comment if there is anything bad here, but avoids the use of the other library that can’t be imported.

````auto
def toDict(perspective_object):
	"""Formats a perspective object as Dict
	
	Adapted from http://forum.inductiveautomation.com/t/ideal-way-to-display-objects-on-a-screen/41575

	Args:
		perspective_object: A perspective property object
	"""
	from com.inductiveautomation.ignition.common import TypeUtilities
	
	# Convert the Perspective property object to Gson and back to a Py Object
	return TypeUtilities.gsonToPy(TypeUtilities.pyToGson(perspective_object))
	
	
def toMarkdown(perspective_object, indent=3):
		"""Formats a perspective object as Markdown
	
		Args:
			perspective_object: A perspective property object
		"""
		from json import dumps
		json_string = dumps(toDict(perspective_object), indent=indent)
		return "```\n{}\n```".format(json_string)

````

---

_[View the full topic](https://forum.inductiveautomation.com/t/ideal-way-to-display-objects-on-a-screen/41575)._
