Forum Discussion
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 is quite understandable.
Kind Regards.
- KarelHusa3 years agoChampion Level 1
I don't understand the issue since you can put anything in the virtual service response.
But in any case, you have to respond with a correct JSON. Try to validate your JSON in https://jsonlint.com/ since ReadyAPI does not support JSON validation yet.
Best regards,
Karel
Related Content
- 7 years ago
- 8 years ago
Recent Discussions
- 5 days ago
- 10 days ago