``` parser = cysimdjson.JSONParser() json_parsed = parser.loads(json_bytes) # Access using JSON Pointer print(json_parsed.json_parsed['foo']) ``` 1. passing `bytes` to `parser.loads` returns a TypeError: the param is expected to be `str` https://github.com/TeskaLabs/cysimdjson/blob/main/cysimdjson/cysimdjson.pyx#L454 2. even passing `str` `json_parsed` has no `json_parsed` element, like it is written in the `print` example I ended up doing something like: ``` parser.parse(payload).get_value() ``` I still have to validate that's what I need :) (at the moment I'm parsing only and not accessing the object)
bytestoparser.loadsreturns a TypeError: the param is expected to bestrhttps://github.com/TeskaLabs/cysimdjson/blob/main/cysimdjson/cysimdjson.pyx#L454strjson_parsedhas nojson_parsedelement, like it is written in theprintexampleI ended up doing something like:
I still have to validate that's what I need :)
(at the moment I'm parsing only and not accessing the object)