How to write array request body in rest assured

I have used rest assured framework, This is the request body for post method { "requestNumber":749 , "referenceNumber": "tyryrty", "cardType": "aliqua pariatur enim cupidatat", "companyName": "amet Lorem", "rejectMessage": "tempor dolor officia", "contactEmail": "mollit pariatur veniam sed", "serviceProviderEmailList": [ "ipsum nis", "Ut dolore aliqua exercitation irure" ], "approvedBy": "sup", "approvedDate": "1962-07-15T01:00:55.437Z" } I have tried in… Read More How to write array request body in rest assured

REST Assured deserialize JSON Array – Unrecognized field

I want to deserialize the response from: https://bookstore.demoqa.com/BookStore/v1/Books. I have the Book class: package test010; public class Book { String isbn; String title; String subTitle; String author; String publish_date; String publisher; int pages; String description; String website; } and the test class: package test010; import io.restassured.RestAssured; import io.restassured.path.json.JsonPath; import io.restassured.response.Response; import io.restassured.specification.RequestSpecification; import org.testng.annotations.Test; import… Read More REST Assured deserialize JSON Array – Unrecognized field

Path parameters being passed as a String with comma not read properly in rest assured

I have a code where I am passing path parameters in the GET request in Rest Assured. But I see the path parameters aren’t read properly and I see some gibberish text being read. Actually the String I am passing as path parameter contains a comma in it. Below is my code. ValidatableResponse response =… Read More Path parameters being passed as a String with comma not read properly in rest assured