NOVA-Team / NOVA-Monorepo

The core API of the NOVA voxel game modding system
https://nova-team.github.io
GNU Lesser General Public License v3.0
66 stars 23 forks source link

Allow (de)serialization of Data using JSON #244

Closed ExE-Boss closed 7 years ago

ExE-Boss commented 7 years ago

This would allow for the ability to pass Data arguments to commands.

For this we could use the JSON Processing API. To use it, we simply need to add the following to our build script:

dependencies {
    compile group: "javax.json", artifact: "javax.json-api", version: "1.0"
    runtime group: "org.glassfish", artifact: "javax.json", version: "1.0.4"
}
SoniEx2 commented 7 years ago

Why not GSON?

ExE-Boss commented 7 years ago

Because the JSON Processing reference implementation is made by Glassfish.

SoniEx2 commented 7 years ago

Both Minecraft and Terasology use GSON.

I'd say use GSON since those are our main targets currently.