Forum Discussion

keanesean's avatar
keanesean
Occasional Contributor
9 years ago

Getting JsonParseException when reading from a property, works fine when I copy and paste

Hi, 

 

I have a REST request which reads a large payload/session_id from a previous response. 

I've stored this as a property as I needed to remove some tags etc. 

When I try to submit the REST request reading the propertyy, I get a JsonParseException. However, if I copy and paste the property into the request, it works fine!

So is SoapUI encoding it in some way?

 

Full error:

17:45:54,246 INFO [stdout] (http--10.252.7.16-48080-1) org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
17:45:54,270 INFO [stdout] (http--10.252.7.16-48080-1) at [Source: org.apache.catalina.connector.CoyoteInputStream@a537b7; line: 1, column: 91]; nested exception is org.codehaus.jackson.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
17:45:54,299 INFO [stdout] (http--10.252.7.16-48080-1) at [Source: org.apache.catalina.connector.CoyoteInputStream@a537b7; line: 1, column: 91]
 

No RepliesBe the first to reply