I'm trying to generate POJO from Json and for that I've found jsonschema2pojo.
But I'd like to use the generated class from my code without having to change my code everytime a new class is generated. I'll receive many different Json's and I'd like to use them as POJO's without interrupting the program.
I also need to access at least a variable from each POJO that might have a different name, for that I was thinking of using Java reflection.
I'd like to know if this is doable, or if there's better ways to implement this.
Aucun commentaire:
Enregistrer un commentaire