MCPcopy Create free account
hub / github.com/asmuth/clip / json_read_object_begin

Function json_read_object_begin

src/utils/json.cc:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247ReturnCode json_read_object_begin(
248 std::istream* input) {
249 TokenType token;
250 std::string token_data;
251 if (auto rc = json_parse(input, &token, &token_data); !rc) {
252 return rc;
253 }
254
255 if (token == JSON_OBJECT_BEGIN) {
256 return OK;
257 } else {
258 return {ERROR, "expected a JSON object"};
259 }
260}
261
262ReturnCode json_read_string(
263 std::istream* input,

Callers 1

geojson_read_objectFunction · 0.85

Calls 1

json_parseFunction · 0.85

Tested by

no test coverage detected