Open Treetrain1 opened 5 months ago
This feature is planned for xjs-databind, but I'm just not there yet. Here's the quick roadmap for right now:
Steps 1-3 are well in progress, but step 4 is not. Step 2 also includes migrating CatLib to the new xjs-data, which itself is a part of the port to 1.20+. As you can imagine, that will take quite some time to get to.
Short answer: not yet
If you are interested in this project, please consider contributing.
I see. It looks like that’s going to take a while to do.
I may try to help with this project after I finish a personal project. Definitely interested for where this goes.
Is there a way to serialize class objects and transform the output of a serialized class?
I found an implementation for class object serialization in CatLib called
XjsObjectMapper
or something similar. Is there a way to take a class and convert it to xjs with modified serialization?I’m looking for something similar to Gson or Jankson’s ability to register serializers and deserializers.
Here’s an example of what I’m asking: Can I transform the output from the following class to use the codec (from Mojang’s DataFixerUpper) from the
TypedEntry
instance? (Method of finding the correct codec to use for deserialization not shown because it’s a bit complicated)