I am working on json currently in android, but now i follow getter and setter methods to parse json. For example. if there are 5 fields in json string, so create 5 getter and setter methods in one class and accordingly parse the string.
But now in future if one more field increases in json string, then again i need to add one more getter and setter method in that class. So my question is can we parse json without getter setter, without any class? so that if json changes in future it can be handled well without adding new getter and setter method. Please let me know the dynamic way to handle json.