JsonPath parse json error in java

Refresh

December 2018

Views

409 time

5

This is the JSON:

{
"datas": {
    "selling": {
        "3": [
            26452067,
            31625950
        ],
        "206": [
            32381852,
            32489262
        ],
        "208": [
            458
        ],
        "217": [
            27364892
        ],
        "226": [
            30474109
        ]
    }
},
"status": 0
}

My path is $.datas.selling['3','206'].\*
And I want to get both of '3' and '206' data. Like this JSON:

[
    26452067,
    31625950,
    32381852,
    32489262
]

But now it is not working. The error message is

Multi properties can only be used as path leafs: $['datas']['selling']['3', '206']

My JsonPath maven version is 2.0.0 (JsonPath's test website).

Actually the JsonPath can run in version 0.9.1, is it a bug?

How can I fix it?

2015-12-01 Now, the JsonPath new version solve the problem. Thanks!

1 answers

-3

Я использую этот путь,

$.datas.*.*[?(@>1000)]