Skip to content

Commit

Permalink
add put(key, JSONArray) to JSONBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
utsavdotpro committed Jul 1, 2021
1 parent 9b20fec commit f9eb40d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom/src/main/java/com/isolpro/custom/JSONBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.util.Log;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

Expand Down Expand Up @@ -75,6 +76,14 @@ public JSONBuilder put(String key, JSONObject jsonObject) {
return put(key, jsonObject, true);
}

public JSONBuilder put(String key, JSONArray jsonArray, boolean toPut) {
return putHandled(key, jsonArray, toPut);
}

public JSONBuilder put(String key, JSONArray jsonArray) {
return put(key, jsonArray, true);
}

public JSONObject build() {
return jsonObject;
}
Expand Down

0 comments on commit f9eb40d

Please sign in to comment.