Contributions
Re: REST Request - JSON response without bracket
Hey richie, For the context : I need to sent a REST request and in return i'm waiting a response on Json format from my virtual service. My Json return have several objects and naturally, i need to put brackets "[" "]" in the beggining and at the end of the response like my example. And we must to provide a json response with several objects without the bracket. I think a groovy script must be used in this case to hide or remove the square bracket but i'm a newbie for that and i don't know how to do that. I hope my context isquite understandable. Kind Regards.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentRe: REST Request - JSON response without bracket
Hey Ritchie, Thanks for your reply. My json response is not contained within an array. My JSON response is contained (Sequence Dispatch Style) here and i would like to know if i put the groovy code that you provied in your previous message can work here ? Thanks, Olivier,2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentRe: REST Request/Rsponse - JSON Path Match with Body
Hi SarahS, Thanks for your reply. Yes i want to create a rule for each condition. I’ve tried this rule : $[‘test’][0,1,2]['test2']['0'][test3_test3_test3][0] but it’s dosen’t work. Thanks. Olivier2 years agoPlace ReadyAPI QuestionsReadyAPI Questions566Views0likes0CommentsREST Request/Rsponse - JSON Path Match with Body
Hi, I have a question about the JSON Body and the JSON Path in the Query Match I would like to match the parameters in the Body with the JSON Path option in the Dispatch Style. But i think i've made something wrong in the Query side and in the Expected Value side. Can someone help me to find the good syntax for my Dispatch Style ? I didn't find anything about that on the Community Questions. Thanks, Olivier,588Views0likes2CommentsREST Request - JSON response without bracket
Hi, I would like to know if it's possible to receive a Json response without the bracket ? For example i would like this json response : [ { "code": "0000000000", "message": "OK" }, { "code": "0000000000", "message": "OK" }, { "code": "0000000000", "message": "OK" } ] Like this without the bracket [...] : { "code": "0000000000", "message": "OK" }, { "code": "0000000000", "message": "OK" }, { "code": "0000000000", "message": "OK" } If someone can share me a way to do this, it will be great. I know the ndjson format can do this but i don't think this format is supported in ReadyAPI ? Thanks, Olivier1.8KViews0likes5Comments