Error in JSON library

In a Processing 3.0 sketch with the JSON library, the following command doesn't work:

  JSONObject json = new JSONObject(data);

The console says:

 "The constructor JSONObject(Object) is not visible"

What's the problem? How can I fix it? Thanks.

Answers

  • What is "data"? The example constructor for a JSONObject shows no parameters.

Sign In or Register to comment.