Hi,
seems the library is not (fully) compatible with org.json (maybe it was not the intention) ?
JSONObject test = new JSONObject(s); test.put("viaapi",false); System.out.println(test.getBoolean("viaapi")); // OK System.out.println(test.getString("viaapi")); // FAILS
With org.json the test.getString("viaapi") returns "false".
Here it fails with error: Cannot invoke "java.lang.StringBuilder.substring(int, int)" because "this.mixedBuffer" is null
Can you have a look and correct if this is not intented ?
Thx,
Stefan
Hi,
seems the library is not (fully) compatible with org.json (maybe it was not the intention) ?
JSONObject test = new JSONObject(s); test.put("viaapi",false); System.out.println(test.getBoolean("viaapi")); // OK System.out.println(test.getString("viaapi")); // FAILSWith org.json the test.getString("viaapi") returns "false".
Here it fails with error: Cannot invoke "java.lang.StringBuilder.substring(int, int)" because "this.mixedBuffer" is null
Can you have a look and correct if this is not intented ?
Thx,
Stefan