import org.json.*; // download json library and install in processing // details here: https://github.com/agoransson/JSON-processing void setup() { /** * Creating a JSONObject from a json-formatted String. */ String json_formatted_string = "{\"myint\":5,\"myfloat\":5.5}"; try { JSONObject obj = new JSONObject(json_formatted_string); println( obj ); } catch(Exception e) { e.printStackTrace(); } }