saveJSONArray()

Output / Files

Description

Saves a JSONValue array to a file.

Syntax

bool saveJSONArray(std::string path, const JSONValue& v, int indent)

Parameters

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

Returns

bool

Related

Under the Hood

From Processing.h:

static bool saveJSONArray(const std::string& path, const JSONValue& v, int indent=2);

Under the Hood

From Processing.cpp:

bool PApplet::saveJSONArray(const std::string& path,const JSONValue& v,int indent){ return saveJSONObject(path,v,indent); }