For example, say I have a variable
%foo and I set foo to
%foo = new ScriptObject();. This variable then becomes a representation of the script object created in an integer ID format (
%foo = 17259;). When my serializer comes across this variable, it will attempt to save it. Theoretically, if this variable was able to be clearly identified as an object, the serializer would then perform additional steps on the object's properties and so-forth. The problem currently being: every integer it comes across is treated as an integer because of this uncertainty, thus not allowing potential objects to have their properties saved as well.
A solution I currently see, however, is one where each script object ID is manually prefixed by a special character when the script object is created. What I'm hoping for though is a more dynamic solution that doesn't require the manual prefixation of script object ids, though I currently don't see a way of that working, which is why I'm creating this thread for help.
Is this a serializer for one specific object type for your own add-on, or a generic serializer to use as a general resource?
A serializer for any potential object, but specialized for my own add-on.