Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
197
rated 0 times [  199] [ 2]  / answers: 1 / hits: 139312  / 13 Years ago, mon, december 12, 2011, 12:00:00

When searching for items in complex JSON arrays and hashes, like:



[
{ id: 1, name: One, objects: [
{ id: 1, name: Response 1, objects: [
// etc.
}]
}
]


Is there some kind of query language I can used to find an item in [0].objects where id = 3?


More From » json

 Answers
6

Yup, it's called JSONPath:


It's also integrated into DOJO.


[#88596] Saturday, December 10, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kinsley

Total Points: 352
Total Questions: 84
Total Answers: 94

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
;