When you create a custom class (not related to Parse.Object) which has a function named
toJSON() for serializing it, it becomes automatically serialized prior to being stored on the server as a custom field. But then retrieving it you need to deserialize it by yourself (for example by calling its constructor or maybe a static method
I wonder if there’s a way to register custom classes so they get unserialized automatically on fetching their parent objects…
Does anyone know?