Forum Discussion

waldmr's avatar
10 years ago

XML -> JSON conversion, creating requests in JSON format

Hi,

I'm totally new here, I hope this will be a relevant question and hasn't been answered 100x times already - I've tried the search and official documentation but didn't come up with anything that could answer my question.

I have an existing soapUI project with regression tests in XML format (including support/setup scripts). We are now switching to JSON format and I need to create a mirror soapUI project, but with JSON requests instead. I've already converted our requests from XML -> JSON and the requests are now in such format:
{
"last_name": "smith",
"email": "12345@abc.com",
"address": {
"street": "abc",
"postcode": "12345"
}
}

My question is: is there a way I can now paste the JSON requests (as above) into a new REST soapUI project? I have tried creating sample rest projects but couldn't find anywhere to paste the request as it was possible with XML.

Thanks in advance,
Wldmr

2 Replies

  • kondasamy's avatar
    kondasamy
    Regular Contributor
    waldmr,

    In order to input/ paste the JSON/ XML in the request, it should be a POST/ PUT method. It is definitely possible to copy and paste JSON/ XML request in SoapUI.

    If I have misunderstood your question, please reply!

    Thanks,
    Samy