Ввод: >
Код: Выделить всё
{
"data": [
{
"firstField": "AAA",
"secondField": "ZZZ",
"thirdField": "111",
"fourthField": "ignore1"
},
{
"firstField": "BBB",
"secondField": "XXX",
"thirdField": "222",
"fourthField": "ignore2"
}
]
}
Код: Выделить всё
[
"AAA",
"ZZZ",
"111",
"BBB",
"XXX",
"222"
]
Код: Выделить всё
$.data[*][*]Я пробовал несколько выражений, но ни одно из них не работает.
Например.
Код: Выделить всё
$.data[*]['firstField','secondField','thirdField']Код: Выделить всё
$.data[*].firstField,secondField,thirdFieldМожно ли это сделать с помощью библиотеки Jayway JsonPath?>
Подробнее здесь: https://stackoverflow.com/questions/788 ... ing-result
Мобильная версия