JsonObjectRequest code example
Example: jsonobjectrequest
// Build the request payload
final JSONObject jsonObject = new JSONObject();
try {
jsonObject.put("email", email);
jsonObject.put("password", password);
} catch (JSONException e) {
e.printStackTrace();
}