JSON4processing Unhandled exception type JSON Exception depend on OS [update]
in
Contributed Library Questions
•
1 year ago
Hello all,
I'd like to use the
Json4Processing library for a project, but am stuck with an "Unhandled exception type JSON Exception" when using JSONObject.put() method.
- import org.json.*;
- JSONObject obj;
- void setup() {
- obj = new JSONObject();
- obj.put("key", "value"); Unhandled exception type JSON Exception
- println(obj);
- }
- void draw(){};
Json4Processing v0.1.3 lib is correctly installed (i can import it from the Import Menu and view the examples in the Examples Menu...) and the error appears in the examples too.
The lib seems to work well with JSONArray but the problem is with JSONObject: I can create instances but can't use the
JSONObject.
put() method.
I also tried to add: "import org.json.JSONException;" with the same result.
Don't know why it doesn't work for me when it seems no one had this problem before, so any hint is welcomed.
Thanks.
http://makio.free.fr/
1