Open GoogleCodeExporter opened 9 years ago
resolved with jsonpath.js version 0.8.4
Original comment by stefan.g...@gmail.com
on 19 Dec 2007 at 2:36
[deleted comment]
I think the issue is not entirely fixed: The result for this example is:
[
"folder",
"Standard Folder",
"uniqueId"
]
but shouldn't it rather be
[
{
"className": "folder",
"typeName": "Standard Folder",
"id": "uniqueId"
}
]
?
Original comment by foober...@gmail.com
on 14 May 2013 at 9:16
Using the example from the JSONPath page:
JSON:
{
"store": {
"book": {
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
}
}
}
JSONPath:
$..book[?(@.isbn)]
Result:
[
"fiction",
"Herman Melville",
"Moby Dick",
"0-553-21311-3",
8.99
]
Expected result:
[
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
}
]
If `book` is an array, as in
[
{
"store": {
"book": [
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
}
]
}
}
]
I get the expected result.
Original comment by foober...@gmail.com
on 14 May 2013 at 9:20
i think my version finally fix the problem, base on 0.8.5, this include the fix
of issue 7 which fixed by author is not wise because why @ need to be escaped?
Original comment by lauxp1...@gmail.com
on 1 Oct 2013 at 4:14
Attachments:
Original issue reported on code.google.com by
ndw_in_...@hotmail.com
on 19 Dec 2007 at 5:05Attachments: