Volley is just an interface to manage the network traffic in a managed way, it won't do much for you to parse and generate the response. You would need to use the library to parse the JSON—
see this link on Android Developer[^] website to see how they are demonstrating this—and as for SQLite, Android has another amazing tool, Room database ORM, in this way, you will be using everything by Google starting with request management by Volley, then Gson and then lastly Room to persist the data in the database.
I recommend that you use Gson to parse this String to objects. However this also requires that you first create a class that matches the signature of that JSON document, the following is what you need,
public class User {
public int UserId;
public String UserName;
public String Password;
public String Email;
public String PhoneNumber;
public double Logtit;
public double Latitle;
public String OfGroup;
}
Now you can go ahead and use Gson to parse the JSON document as an object of
User
type.
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.create();
User user = gson.fromJson(jsonString, User.class);
This way, you can convert the JSON to a runtime object. See here for an example of this,
http://tutorials.jenkov.com/java-json/gson.html[
^]
GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back[
^]
Room Persistence Library | Android Developers[
^]