MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / object

Method object

source/core/StarFormattedJson.cpp:437–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437FormattedJson FormattedJson::object(ElementList const& elements) {
438 FormattedJson json = ofType(Json::Type::Object);
439 for (JsonElement const& elem : elements) {
440 json.appendElement(elem);
441 }
442 return json;
443}
444
445FormattedJson FormattedJson::array(ElementList const& elements) {
446 FormattedJson json = ofType(Json::Type::Array);

Callers

nothing calls this directly

Calls 1

appendElementMethod · 0.80

Tested by

no test coverage detected