{"id":13779,"date":"2014-12-18T20:12:33","date_gmt":"2014-12-18T20:12:33","guid":{"rendered":"http:\/\/developer.wordpress.org\/reference\/functions\/wp_json_encode\/"},"modified":"2026-02-24T05:19:47","modified_gmt":"2026-02-24T05:19:47","slug":"wp_json_encode","status":"publish","type":"wp-parser-function","link":"https:\/\/developer.wordpress.org\/reference\/functions\/wp_json_encode\/","title":{"rendered":"wp_json_encode()"},"excerpt":{"rendered":"<p>Encodes a variable into JSON, with some confidence checks.<\/p>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"wp-parser-source-file":[171],"wp-parser-package":[3],"wp-parser-since":[597,1059,1372],"class_list":["post-13779","wp-parser-function","type-wp-parser-function","status-publish","hentry","wp-parser-source-file-wp-includes_functions-php","wp-parser-package-wordpress","wp-parser-since-4-1-0","wp-parser-since-5-3-0","wp-parser-since-6-5-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/13779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-function"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=13779"}],"version-history":[{"count":3,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/13779\/revisions"}],"predecessor-version":[{"id":154439,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/13779\/revisions\/154439"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=13779"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=13779"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=13779"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=13779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}