DEV Community

loading...

Discussion on: What library/language/tool wowed you with its developer experience?

Collapse
ajeebkp23 profile image
Ajeeb.K.P

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).