MCPcopy Create free account
hub / github.com/Tracktion/choc / parseTopLevel

Method parseTopLevel

choc/text/choc_JSON.h:317–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 [[noreturn]] void throwError (const char* error) { throwError (error, current); }
316
317 value::Value parseTopLevel()
318 {
319 skipWhitespace();
320
321 if (popIf ('[')) return parseArray();
322 if (popIf ('{')) return parseObject();
323 if (! isEOF()) throwError ("Expected an object or array");
324 return {};
325 }
326
327 value::Value parseArray()
328 {

Callers 1

parseFunction · 0.80

Calls 1

throwErrorFunction · 0.85

Tested by

no test coverage detected