I need help to convert String in JSON object.
This is the response I am getting from WebView
webView.evaluateJavascript(
"document.getElementById('formio-submitted-data').textContent"
) { value ->
The response is
value = ""{\"data\":{\"plantName\":\"Bhanu\",\"address\":\"Abcd\",\"totalCapacity\":25},\"isValid\":true}""
The response I have got is in a string. I have to convert it into JSON. How can I achieve this?