This is 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 the data "3" and "206". Like this JSON:
[ 26452067, 31625950, 32381852, 32489262 ]
But now it does not work. Error message
Several properties can only be used as tracks: $ ['datas'] ['selling'] ['3', '206']
My version of JavenPath is maven 2.0.0 ( JsonPath test site ).
JsonPath can actually work in version 0.9.1, is this a bug?
How can i fix this?
2015-12-01 Now the new version of JsonPath has solved the problem. Thanks!
source share