Questions tagged [jayway]
69 questions
0
votes
2 answers
How to check a given json-path expression is syntactically correct?
I need to validate whether the below json-paths are syntactically correct or not:
$[*].key1.key2[*].key3.key4 // valid
$[*].key1/key2[*].key3"key4 // invalid
Is there any API which can check the above json-path expressions and return true/false in…

TheCodeCache
- 820
- 1
- 7
- 27
0
votes
1 answer
Can we use io.restassured and jayway in the same method?
When I have arrays in response, getting proper results using Jayway, but not with io.restassured ? Can I use Jayway and io.restassured together ? Is that an acceptable / good practice?
JSON Response :
{"applications": [
{
"Id":…

learningIsFun
- 142
- 1
- 9
0
votes
1 answer
JsonPath (jayway) to return scalar as array
I have struggles to craft working jsonpath (Jayway https://jsonpath.herokuapp.com/) where property (scalar) is returned as array.
For input
{
"a":{
"b":"valueofb"
}
}
I would like obtain array: ["valueofb"] NOT just valueofb

Cron Merdek
- 1,084
- 1
- 14
- 25
0
votes
0 answers
NullPointerException when trying build a android application with maven and plugin com.jayway.maven.plugins.android.generation2
I am trying building a android application with maven and this pom.xml:

Kleber Mota
- 8,521
- 31
- 94
- 188
0
votes
1 answer
Package name displayed along with pojo while converting json to java object (pojo)
I have below code when I run this , Not sure why package name is coming with this
com.heiler.ppm.fulltextsearch.object.FullTextSearchConfigModel@5c3bd550[indexName=Items_AllSupplierCatalogs_en,indexLabel=Items (All Supplier Catalogs)…

user5702955
- 135
- 1
- 3
- 10
0
votes
0 answers
What is the JsonPath expression for selecting an object based on sub-object values?
I need to be able to select elements within a JSON document based on the values in sub-elements which, unfortunately, reside in a list of key-value pairs (this is the structure I have to work with). I'm using Jayway 2.4.0.
Here is the JSON…

Randy Friemel
- 1
- 2
0
votes
1 answer
How to add new json node using a java library like Jayway JsonPath
i have a json string say:
{"store" : {
"book" : [
{
"category" : "reference",
"author" : "Nigel Rees",
"title" : "Sayings of the Century",
"display-price" : 8.95
},
{
"category" :…

VishalDevgire
- 4,232
- 10
- 33
- 59
-1
votes
1 answer
Need to extract value in json array using jayway json path extraction
In below Josn I need to extract Joe
[
{"firstName":"Joe"},
{"lastName":"boxer"}
]
I have used jsonpath $..firstName which extracts ["Joe"] instead of "Joe" ie is ["joe"] inside array.. Is there any way to extract "Joe" instead of ["Joe"]

VG P
- 337
- 3
- 9
-1
votes
1 answer
How to build jsonpath expression for checking the number of times in array?
Suppose I have a json like this
{
"city" :[
"Bangalore",
"Delhi",
"Chennai",
"Bangalore"
]
}
Now I want to make a make a json path query to check if bangalore is occuring twice or not so to check that I want to extract no of times Bangalore is…

agrawal1084
- 129
- 2
- 11