loadJSONObject()

Input / Files

Description

Loads a JSON file and returns a JSONValue object.

Syntax

JSONValue loadJSONObject(std::string path)

Parameters

NameTypeDescription
pathstd::stringpath to the JSON file

Returns

JSONValue

Related

Under the Hood

From Processing.h:

static JSONValue loadJSONObject(const std::string& path);

Under the Hood

From Processing.cpp:

JSONValue PApplet::loadJSONObject(const std::string& path){ return parseJSON(readFileString(path)); }