Serialize user data to JSON

Is there a way to include user data when using serializeTreeToJSON()? It appears that user data is ignored during the serialization process.

try setSerializationLevel method:

tree.setSerializationLevel(true)

That worked!