saveJSONObject()

Output / Files

Description

Saves a JSONValue to a file as formatted JSON.

Syntax

bool saveJSONObject(std::string path, JSONValue v, int indent)

Parameters

NameTypeDescription
pathstd::stringpath to write to
vJSONValuethe JSON value
indentintindentation spaces (default 2)

Returns

bool

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...