I have this code to convert a valid string into json.
$response = "{\\"status\\":\\"success\\",\\"message\\":\\"Hosted