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

Method printJson

source/core/StarJson.cpp:864–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864String Json::printJson(int pretty, bool sort) const {
865 if (type() != Type::Object && type() != Type::Array)
866 throw JsonException("printJson called on non-top-level JSON type");
867
868 return repr(pretty, sort);
869}
870
871String Json::printString() const {
872 if (type() == Type::String)

Callers 7

writeMetadataMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
exportTilesetMethod · 0.45
TESTFunction · 0.45
setMetadataMethod · 0.45
printConfigurationMethod · 0.45

Calls 1

typeFunction · 0.50

Tested by 1

TESTFunction · 0.36