cannot view the output with echo cannot view the output with echo json json

cannot view the output with echo


So it should be $data['result']['metadata']['intentName']; instead of $data['intentName']