team401 / high-key-2024

Other
2 stars 0 forks source link

Use JSONSync for constants #20

Open aidnem opened 2 months ago

aidnem commented 2 months ago

Purpose Replace Java constant files with JSON and classes to load them from the JSON.

Project Scope

linglejack06 commented 1 week ago

@avidraccoon what happens if there is a variable in the java class schema that is not in the json? does GSON throw an error or will it just have that variable as null? if it throws an error, could you make it so where it instead returns null, this would be very helpful for easy readability on schema side

linglejack06 commented 1 week ago

for example, if the class says there should be a hashmap variable, and gson can't find that key in the json, does it fail or continue running and just place a null there?

avidraccoon commented 1 week ago

I will look into that case and if you are just trying to not have something ever loaded from json there is something for that