superska
12 years agoNew Contributor
JSON Formatting issue
Hi,
I must be doing something wrong...
I'm calling my own REST service from within SoapUI. I get an answer from the service, but it shows as an encoded string in stead of nicely formatted JSON:
"{\"Items\":[{\"FavoritesListGuid\":\"75b02f79-ddbc-4124-96a4-5b60b8559503\",\"Name\":\"Wenslijst\",\"Created\":\"2014-03-03T13:28:23.207\",\"CreatedBy\":null,\"Updated\":\"2014-03-03T13:28:23.207\",\"UpdatedBy\":null,\"TotalAmount\":0.0,\"ProductCount\":0,\"CustomerUserId\":-1,\"Products\":null}],\"Count\":1}"
When I call the service in a browsder, or when I look at the response with Fiddler, I don't see those escaping characters.
Any ideas?
Thanks!
Stefan
I must be doing something wrong...
I'm calling my own REST service from within SoapUI. I get an answer from the service, but it shows as an encoded string in stead of nicely formatted JSON:
"{\"Items\":[{\"FavoritesListGuid\":\"75b02f79-ddbc-4124-96a4-5b60b8559503\",\"Name\":\"Wenslijst\",\"Created\":\"2014-03-03T13:28:23.207\",\"CreatedBy\":null,\"Updated\":\"2014-03-03T13:28:23.207\",\"UpdatedBy\":null,\"TotalAmount\":0.0,\"ProductCount\":0,\"CustomerUserId\":-1,\"Products\":null}],\"Count\":1}"
When I call the service in a browsder, or when I look at the response with Fiddler, I don't see those escaping characters.
Any ideas?
Thanks!
Stefan