Source Code:
(back to article)
<?php $data = ['foo' => 'bar'] /** whatever is being serialized **/; header('Content-Type: application/json'); echo json_encode($data); ?>
Result:
Report an issue