You can save JSON when you call web service. You must use the same methods which was used last item.
When you read this JSON, you must use Gson library.
1 2 3 4 5 6 | public void returnJSONToYourModel() { final String json = Utils.readFromFile(MainActivity. this ); final Gson gson = new Gson(); final YourModel yourModel = gson.fromJson(json, YourModel. class ); } |