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

Method getRawString

Source/ofxJSONElement.cpp:108–119  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

106
107//--------------------------------------------------------------
108std::string ofxJSONElement::getRawString(bool pretty)
109{
110 std::string raw;
111 Json::StreamWriterBuilder builder;
112
113 if (pretty)
114 {
115 builder["indentation"] = " ";
116 }
117 raw = Json::writeString(builder, *this);
118 return raw;
119}

Callers 3

SavePrefabMethod · 0.80
SaveMethod · 0.80
SaveStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected