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.
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
Recent Discussions
- 19 days ago