Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

Jsonpath standard expression not working [urgent trial version]

$
0
0

hello ,

 

this expression is not working on soap ui pro :

 

$[(@.code=2)].codePays

 

the expected value is 'FR'

 

[
{
"codePays": "FR",
"code": "2",
"libelle": "COLIS (CARTON, FARDEAU)",
"libelleReduit": "Col",
"numOrdre": 1,
"indAchat": 1,
"indVente": 0
},
{
"codePays": "FR",
"code": "3",
"libelle": "PALETTE / BOX",
"libelleReduit": "Pal",
"numOrdre": 5,
"indAchat": 1,
"indVente": 0
}

]

 

but I have an error in soap ng pro : assertion failed for path [$[(@.code=2)].codePays] : numberFormatException:For input string : "$[(@.code=2)].codePays"

 

it's working fine on the web site http://ashphy.com/JSONPathOnlineEvaluator/ (where I'm testing the json path expression)

 

thanks to help me


Viewing all articles
Browse latest Browse all 20755

Trending Articles