We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e20da commit 5526502Copy full SHA for 5526502
2 files changed
core/src/processing/data/JSONArray.java
@@ -263,7 +263,7 @@ private Object opt(int index) {
263
* @return An object value.
264
* @throws JSONException If there is no value for the index.
265
*/
266
- private Object get(int index) {
+ public Object get(int index) {
267
Object object = opt(index);
268
if (object == null) {
269
throw new RuntimeException("JSONArray[" + index + "] not found.");
core/src/processing/data/JSONObject.java
@@ -540,7 +540,7 @@ static protected String doubleToString(double d) {
540
* @return The object associated with the key.
541
* @throws JSONException if the key is not found.
542
543
- private Object get(String key) {
+ public Object get(String key) {
544
if (key == null) {
545
throw new RuntimeException("Null key.");
546
}
0 commit comments