I have been trying to decode a JSON response from a third party server (Payment gateway). The issue I can not decode the JSON because one of the JSON key's value is multi-line.
What I have done so far:-
$jsonobj = '{
    "requestId":"123",
    "errorCode": "322231231",
    "errorMessage": "lorem ipsum1
            lorem ipsum2
            lorem ipsum3
        "
}';
print_r(json_decode($jsonobj, true));
As the JSON response comes from a third party how to handle this situation?
 
    