jsonobjectrequest

JavaScript
// Build the request payload
final JSONObject jsonObject = new JSONObject();
try {
    jsonObject.put("email", email);
    jsonObject.put("password", password);
} catch (JSONException e) {
    e.printStackTrace();
}
Source

Also in JavaScript: