MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / parse

Method parse

Source/ofxJSONElement.cpp:36–49  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

34
35//--------------------------------------------------------------
36bool ofxJSONElement::parse(std::string jsonString)
37{
38 CharReaderBuilder rb;
39 auto reader = std::unique_ptr<Json::CharReader>(rb.newCharReader());
40 Json::String errors;
41 if (!reader->parse(jsonString.c_str(),
42 jsonString.c_str() + jsonString.size(),
43 this, &errors))
44 {
45 ofLog() << "Unable to parse string: " << errors;
46 return false;
47 }
48 return true;
49}
50
51
52//--------------------------------------------------------------

Callers 4

jquery.jsFile · 0.80
LoadPrefabMethod · 0.80
LoadLayoutFromStringMethod · 0.80
openMethod · 0.80

Calls 2

ofLogClass · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected