simdjson_nodejs icon indicating copy to clipboard operation
simdjson_nodejs copied to clipboard

error in name for valueForKeyPath

Open gayratv opened this issue 2 years ago • 0 comments

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.

gayratv avatar Apr 03 '23 15:04 gayratv