![]() |
Cinder
0.9.1
|
#include <Json.h>
Public Member Functions | |
ParseOptions () | |
ParseOptions & | ignoreErrors (bool ignore=true) |
bool | getIgnoreErrors () const |
ParseOptions & | allowComments (bool allow=true) |
bool | getAllowComments () const |
Options for JSON parsing. Passed to the JsonTree constructor.
cinder::JsonTree::ParseOptions::ParseOptions | ( | ) |
Default options. Enables parsing errors.
JsonTree::ParseOptions & cinder::JsonTree::ParseOptions::ignoreErrors | ( | bool | ignore = true | ) |
Sets if JSON parse errors are ignored. Default false
.
bool cinder::JsonTree::ParseOptions::getIgnoreErrors | ( | ) | const |
Returns whether JSON parse errors are ignored.
JsonTree::ParseOptions & cinder::JsonTree::ParseOptions::allowComments | ( | bool | allow = true | ) |
Sets if comments are allowed. Default true
.
bool cinder::JsonTree::ParseOptions::getAllowComments | ( | ) | const |
Returns whether comments are allowed or not.