MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / parseArray

Method parseArray

src/common/json.cpp:170–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 Value parseArray() {
171 if (depth >= MAX_DEPTH) return Value();
172 ++depth;
173 next(); // skip [
174 Value v;
175 v.type = Type::Array;
176 skipWs();
177 if (peek() == ']') { next(); --depth; return v; }
178 while (true) {
179 v.arrVal.push_back(parseValue());
180 skipWs();
181 if (peek() == ',') { next(); continue; }
182 if (peek() == ']') { next(); break; }
183 break;
184 }
185 --depth;
186 return v;
187 }
188
189 Value parseObject() {
190 if (depth >= MAX_DEPTH) return Value();

Callers

nothing calls this directly

Calls 1

ValueClass · 0.85

Tested by

no test coverage detected