JSONParser jp;
-fmt::println("JFW: about to parse \"{}\" => \"{}\"", name, val);
bool is_valid_json = jp.parse(val);
-fmt::println("JFW: kk");
for (const auto& i : tok) {
vector<field_entity> v;
if (vi.append) {
index = f->arr.size();
} else if (index < 0) {
-fmt::println("JFW: index < 0");
index = f->arr.size() + index;
if (index < 0) {
return -EINVAL; /* out of bounds */
}
}
if ((size_t)index >= f->arr.size()) {
-fmt::println("JFW: index resize");
f->arr.resize(index + 1);
}
f = &f->arr[index];
return true;
}
-fmt::println("JFW: JSON stream parsing failed: {}", ec.message());
-
if (boost::json::error::extra_data == ec || bytes_written < input.size()) {
// As the failure case is expected to be rare, and originates from
// malformed input, we'll try to convert to a string (as some extant