Hi Team,
When I am trying to convert the a string value to JSON usind JSON slurper I am getting null. Not sure why.
JiraNewTicketJSON = {"fields":{"project":{"key":"TESTCM"},"issuetype":{"name":"Change Request"},"summary":"Testing","description":"Testing description",}}}}
finalBodyJson = JsonOutput.toJson(JiraNewTicketJSON)
jsonContent = new JsonSlurper().parseText(finalBodyJson)
finalJsonContent = groovy.json.JsonOutput.toJson(jsonContent.content)
I am getting
finalBodyJson as {"fields":{"project":{"key":"TESTCM"},"issuetype":{"name":"Change Request"},"summary":"Testing","description":"Testing description",}}}}
but jsonContent is null
Regards,
Sunil