Add a method to the perspective property object, likely "toJson()" that returns the object in a json string.