Where do all the JSON opt- type functions go in native processing 2.1?

I was trying to use optJSONObject and it says no such function to be found. Are they gone? please help!

Tagged:

Answers

  • Processing's Json code might be based, more on less, on the library from json.org, but it isn't a slavish copy, so it has its own way of doing things.

    You can use hasKey(key) if you need to check if a Json object exists before getting it.

Sign In or Register to comment.