MCPcopy Create free account
hub / github.com/crawl/crawl / json_stringify

Function json_stringify

crawl-ref/source/json.cc:424–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424char *json_stringify(const JsonNode *node, const char *space)
425{
426 SB sb;
427 sb_init(&sb);
428
429 if (space != nullptr)
430 emit_value_indented(&sb, node, space, 0);
431 else
432 emit_value(&sb, node);
433
434 return sb_finish(&sb);
435}
436
437void json_delete(JsonNode *node)
438{

Callers 1

json_encodeFunction · 0.85

Calls 4

sb_initFunction · 0.85
emit_value_indentedFunction · 0.85
emit_valueFunction · 0.85
sb_finishFunction · 0.85

Tested by

no test coverage detected