- marked as task
Deserializing problem
Hi,
I am deserializing a class, saving it to file and right after it I am loading and serializing it, but it outputs an error and I can't understand why. The code is available on GitHub https://github.com/SuperMarcomen/SuperLib.
Here is the error: https://pastebin.com/3s3RRbpZ
Even tough there is an error during the serialization, the deserialization works fine, but I would like to change the output a bit, but I can't understand how to do it.
!!it.marcodemartino.superlib.Config
location: {serializedLocation: 'world:0.0:0.0:0.0:0.0:0.0'}
pirla: test
As you can see, SnakeYaml saves the instance of SerializableLocation with the name "location" and then it saves its field "serializedLocation", but I would like to have just a string called "location" as output.
Comments (3)
-
-
reporter Thank you so much for your reply.
I’m sorry if my request was confusing, I’ve confused “serialization” with “deserialization”.
I didn’t realize there was a better place to ask my question, therefore I will move it there right now.
-
reporter - changed status to resolved
Moved to mailing list
- Log in to comment
This is confusing.