- var_dump: documentation ( source)
- json_decode: documentation ( source)
<?php
var_dump(json_decode('{"personalizations": [{"to": [{"email": "test@example.com"}]}],"from": {"email": "test@example.com"},"subject": "Sending with SendGrid is Fun","content": [{"type": "text/plain", "value": "and easy to do anywhere, even with cURL"}]}'));