[ox/oc] Fix to iterate to next field of parent after reading array

This commit is contained in:
Gary Talent 2022-12-04 14:55:29 -06:00
parent ea7ccf40b1
commit fe42702e88

View File

@ -143,7 +143,7 @@ Error OrganicClawReader::field(const char *key, T *val) noexcept {
const auto &srcVal = value(key); const auto &srcVal = value(key);
const auto srcSize = srcVal.size(); const auto srcSize = srcVal.size();
val->resize(srcSize); val->resize(srcSize);
return field(key, val->data(), val->size()); err = field(key, val->data(), val->size());
} else if (targetValid()) { } else if (targetValid()) {
const auto &jv = value(key); const auto &jv = value(key);
if (jv.empty() || jv.isObject()) { if (jv.empty() || jv.isObject()) {