MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ckpt_json_parse

Function ckpt_json_parse

common/script/json_api.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ckpt_json_parse(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
73{
74 const ScriptArgs args(Parser, Param, NumArgs, "json_parse");
75 nlohmann::json* out = tree(args, 0);
76 *out = nlohmann::json::parse(args.str(1), nullptr, false);
77}
78
79void ckpt_json_delete(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
80{

Callers

nothing calls this directly

Calls 3

treeFunction · 0.85
parseFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected