Compatible with Processing’s APIs around JSON Format. parseJSONObject, getJSONObject() and getJSONArray() returns null if there isn’t a object, or original string unparseable. Where getFloat(), getInt() returns an exception.
All mines are avoided with return, not a break, to simply ignore corrupted JSON inputs.
Compatible with Processing’s APIs around JSON Format.
parseJSONObject
,getJSONObject()
andgetJSONArray()
returns null if there isn’t a object, or original string unparseable. WheregetFloat()
,getInt()
returns an exception.All mines are avoided with
return
, not abreak
, to simply ignore corrupted JSON inputs.