This library jmespath.org/
Have look at here to get the possibilities (For me, this link is cheat-sheet. I bookmarked and visit often.) jmespath.org/tutorial.html
What it does ?
JMESPath is a query language for JSON. (As per official docs).
It's multi-language supported. Visit homepage to find links.
Previously, I used to loop/iterate through objects to find some id, attributes etc. from json.
For python, it's very easy json.loads....; jmespath.search('patter',object_list_dict_or_whatever_nested).
So, I can avoid many looping (I'm not sure about performance [I believe it's good, I guess it's linear access]. I mean, reduced amount of code (Lesser code mean better code).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This library
jmespath.org/
Have look at here to get the possibilities (For me, this link is cheat-sheet. I bookmarked and visit often.)
jmespath.org/tutorial.html
What it does ?
JMESPath is a query language for JSON. (As per official docs).
It's multi-language supported. Visit homepage to find links.
Previously, I used to loop/iterate through objects to find some id, attributes etc. from json.
For python, it's very easy
json.loads....; jmespath.search('patter',object_list_dict_or_whatever_nested)
.So, I can avoid many looping (I'm not sure about performance [I believe it's good, I guess it's linear access]. I mean, reduced amount of code (Lesser code mean better code).