Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,018
Community Members
 
Community Events
168
Community Groups

getting json parse exception

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

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
Site Admin
TAGS

Atlassian Community Events