I think Serialize will be the best way to do this. Just create one class whose attributes will be the JSON keys. As for example if your JSON is like
{
Car:{
name: "XYZ"
color: "red"
}
}
Your class will be:
class Car implements Serializable{
private String name;
private String color;
}
Check this link to know how to serialize and deserialize object.