how to conver model into json object in android using gson code example
Example: object to json string android
Gson gson = new Gson();
String json = gson.toJson(myObj);
Gson gson = new Gson();
String json = gson.toJson(myObj);