Clear_Capital__
11 years agoContributor
REST "Response" contains xml value instead of JSON
Hi,
My JsonSlurper Assertion teststep for a REST response is failing with following error
“FAILED: Lexing failed on line: 1, column: 1, while reading ‘<‘ , no possible json value or punctuation could be recognized.
My guess is its because the Response contains xml instead of JSON. As you can see the enclosed screen shot, both ResponseAsXML and Response has xml value. I know my REST service returns the JSON, so not sure if SoapUI is turning that in to xml ? Any settings in SoapUI I can use to change it to JSON ?
Thanks
Jignesh
My JsonSlurper Assertion teststep for a REST response is failing with following error
“FAILED: Lexing failed on line: 1, column: 1, while reading ‘<‘ , no possible json value or punctuation could be recognized.
My guess is its because the Response contains xml instead of JSON. As you can see the enclosed screen shot, both ResponseAsXML and Response has xml value. I know my REST service returns the JSON, so not sure if SoapUI is turning that in to xml ? Any settings in SoapUI I can use to change it to JSON ?
Thanks
Jignesh