serialize
Serializes a log object into JSON format.
This method converts a PureeLog object into a JSON representation that can be processed by outputs. The serialization process may vary across platforms, but the result should be a consistent JSON structure that represents the log data.
The platformClass parameter provides platform-specific class information needed for the serialization process, such as reflection data or class references.
Return
The serialized log as a JsonObject.
Parameters
log
The log object to be serialized.
platformClass
Platform-specific class information for the log type.