{"id":11868,"date":"2022-02-07T21:49:24","date_gmt":"2022-02-08T02:49:24","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11868"},"modified":"2022-02-07T21:49:25","modified_gmt":"2022-02-08T02:49:25","slug":"how-to-set-the-json-in-php","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-set-the-json-in-php\/","title":{"rendered":"How to set the JSON Header in PHP"},"content":{"rendered":"\n
header('Content-Type: application\/json');\necho json_encode($data);<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,15],"tags":[954,452,471],"yoast_head":"\nHow to set the JSON Header in PHP<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n