simdjson_nodejs
simdjson_nodejs copied to clipboard
error in name for valueForKeyPath
I receive a file like this from the backend:
{
"@avito-core/toggles:6.1.18": {
"add_model_review_from": true
}
}
run standart code and see:
const JSONbuffer2 = simdjson.lazyParse(data); // external (C++) parsed JSON object
console.log(JSONbuffer2.valueForKeyPath('@avito-core/toggles:6.1.18'));
console.log(JSONbuffer2.valueForKeyPath('@avito-core/toggles:6.1.18'));
^
Error: The JSON field referenced does not exist in this object.