s-yadav / jsonQ

A JavaScript library to make manipulation and extraction of data from a JSON very easy and fast.
MIT License
202 stars 69 forks source link

return path based on value #11

Open devanshkhanwalkar opened 7 years ago

devanshkhanwalkar commented 7 years ago

First off, Very nice and clean library! Thumbs up! I am wondering that the path() only returns based on the key and not on value. It maybe becoz it returns as and when the first occurrence is matched. Is there any work around so that it returns the path of the key based on its value?