I have an API from which I receive JSON object response, which is dynamic (meaning response JSON object contains different key-values time to time), so that the database for my Android application need to delete current table and create new table based on JSON keys.
For simple example, today I get JSON object response like
`{"name":"STRING", "age":"INTEGER"},
next week I will get response like
{"name":"STRING", "id":"INTEGER","Country":"STRING"}`
I checked Room and Realm, but the problem is that I can't able not get any clear examples or tutorials to make use of it.
FYI - I am new to Android database concept.
Edit #1:
What I need is to create DB Table columns based on JSON keys (i.e, by default table X has two columns A and B and receiving JSON object contains three keys A,B and C, so that DB need to include column C dynamically)