{"id":23523,"date":"2013-05-31T01:20:40","date_gmt":"2013-05-31T01:20:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/json-data-feed\/"},"modified":"2013-08-23T19:02:26","modified_gmt":"2013-08-23T19:02:26","slug":"json-data-feed","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/json-data-feed\/","author":12329586,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.5.3","stable_tag":"0.5.3","tested":"3.5.2","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"JSON Data Feed","header_author":"Jason Cordial","header_description":"","assets_banners_color":"","last_updated":"2013-08-23 19:02:26","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/xiik.com","header_author_uri":"http:\/\/xiik.com\/team\/jason_cordial","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2286,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.5.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5693,1118],"plugin_category":[],"plugin_contributors":[95917],"plugin_business_model":[],"class_list":["post-23523","plugin","type-plugin","status-publish","hentry","plugin_tags-data-feed","plugin_tags-json","plugin_contributors-jpcordial","plugin_committers-jpcordial"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/json-data-feed.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>JSON Data Feed can be used to supplement a WordPress blog's normal XML feeds with a JSON feed. Install it, activate it, and you're done.<\/p>\n\n<p>The JSON feed can be accessed by going to {a url on a WordPress site}\/json<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the plugin folder.<\/li>\n<li>Upload the unpacked folder to your plugins directory.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I add my own data to a post's JSON feed?<\/dt>\n<dd><p>Yes, you can!<\/p>\n\n<p>In your theme's <em>functions.php<\/em> file, you can use a filter to add whatever data you need.<\/p>\n\n<pre><code>add_filter(\"get_json_meta\", \"my_metadata_function\");\nfunction my_metadata_function($metadata){\n    $myData = \"\"; \/\/Add your data here.\n    array_push($metadata, $myData);\n}\n<\/code><\/pre>\n\n<p>Every post type also has it's own meta data filter. If you need to add metadata only to a single post type,<\/p>\n\n<pre><code>add_filter(\"get_json_meta_{post_type}\", \"my_metadata_function\");\nfunction my_metadata_function($metadata){\n    $myData = \"\"; \/\/Add your data here.\n    array_push($metadata, $myData);\n}\n<\/code><\/pre>\n\n<p>Any data you push onto the array will be available in <em>{post}.meta<\/em> section of the JSON feed.<\/p><\/dd>\n<dt>Can I get full category and tag objects in the feed?<\/dt>\n<dd><p>Sure can! You can change that in the plug in settings.<\/p>\n\n<p>Settings can be accessed from Settings-&gt;JSON Data Feed.<\/p><\/dd>\n<dt>Can I modify the blog info in the data feed?<\/dt>\n<dd><p>Why yes, you can! Once again, through the magic of filters, anything is possible!<\/p>\n\n<pre><code>add_filter(\"get_json_bloginfo\", \"my_bloginfo_function\");\nfunction my_bloginfo_function($bloginfo){\n    $myData = \"\"; \/\/Add your data here.\n    array_push($bloginfo, $myData);\n}\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<p>Added <em>get_json_bloginfo<\/em> filter to add or change the blog info in the data feed.<\/p>","raw_excerpt":"JSON Data Feed can be used to supplement a WordPress blog&#039;s normal XML feeds with a JSON feed. Install it, activate it, and you&#039;re done.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23523"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jpcordial"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23523"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23523"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23523"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23523"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23523"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}