Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting json parse exception

Sarabjeet Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2022

I have below code for in value for table format in a shell script

"body": {
"storage": {
"value": "\n
<table>
<tbody>
<tr>
<th>COUNTRY</th>
<th>VERSION</th>
</tr>
<tr>
<td>OCM</td>
<td>Version1</td>
</tr>
</tbody>
</table>
",
"representation": "storage"
}
},

But I am getting error while executing

{"statusCode":500,"message":"org.codehaus.jackson.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n at [Source: com.atlassian.plugins.rest.common.limitrequest.jersey.LimitingRequestFilter$1@60a39af0; line: 10, column: 45]"}[root@localhost Test]#

 

1 answer

0 votes
aorlov September 15, 2022

Hi @Sarabjeet Singh . Did you try to remove "\n" from your payload in this line "value: \n" ?

 

Kind regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events