Open hotaru355 opened 6 months ago
@hotaru355 I'm currently just messaging to acknowledge that I've seen this message and I'm aware of it. I'm however unable to properly reply for a couple of weeks, so don't expect any action on this immediately. Thanks!
An update, a month later, an update: Yes, the idea of having a high-level function allowing users to obtain items from more than one prefix is something that has long been asked for, one way or another. Yesterday I released ijson 3.3.0 with the latest master, and I have a few janitorial tasks I'd like to undertake before tackling this feature, which is something I think would be slightly popular indeed.
I'll keep updating this issue whenever I have something to share, but once again don't hold your breath.
Description Using higher level interfaces, is there a way to iterate over more than one prefix?
Detailed description First of all, thank you very much for this great library!
I am using ijson to transform a long JSON response from a graphQL server into python objects. Unfortunately, if the server encounters an error, the response status code is still 200 with the response body containing some JSON error message. So, the response can be in one of two formats:
I know I can achieve the desired behaviour using the low-level
parse
function. The issues I have with this approach is thatparse
results would need to build dictionaries out of token eventsHow bad would you say is the performance loss when building dictionaries from token events compared to the C implementation? Is it even worth using ijson in this case?
Why is this not clear from the documentation The use case is not mentioned