LoginSignup
0
0

More than 5 years have passed since last update.

ANDROID JSON Create

Posted at

Method use:

JSONObject jsonRegister = JSONBuilt(mailString, passwordString);

Method:

private JSONObject JSONBuilt(String mailString, String passwordString) {
    final JSONObject jsonRegister = new JSONObject();

    try {
        jsonRegister.put("mail", mailString);
        jsonRegister.put("password", passwordString);

    } catch (JSONException e) {
        e.printStackTrace();
    }

    Log.v("Kronox", jsonRegister.toString());
    return jsonRegister;
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0