{"id":204833,"date":"2024-09-27T15:11:01","date_gmt":"2024-09-27T15:11:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/convert-blocks-to-json\/"},"modified":"2026-02-27T04:33:54","modified_gmt":"2026-02-27T04:33:54","slug":"convert-blocks-to-json","status":"publish","type":"plugin","link":"https:\/\/eu.wordpress.org\/plugins\/convert-blocks-to-json\/","author":22050467,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.0","stable_tag":"1.3.0","tested":"6.9.4","requires":"4.0","requires_php":"7.4","requires_plugins":null,"header_name":"Convert Blocks to JSON","header_author":"badasswp","header_description":"Convert your WP blocks to JSON.","assets_banners_color":"000000","last_updated":"2026-02-27 04:33:54","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/badasswp\/convert-blocks-to-json","header_author_uri":"https:\/\/github.com\/badasswp","rating":0,"author_block_rating":0,"active_installs":40,"downloads":1334,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"badasswp","date":"2024-09-27 15:10:37"},"1.0.1":{"tag":"1.0.1","author":"badasswp","date":"2024-09-27 15:10:37"},"1.0.2":{"tag":"1.0.2","author":"badasswp","date":"2024-09-27 15:10:37"},"1.0.3":{"tag":"1.0.3","author":"badasswp","date":"2024-09-27 15:10:37"},"1.0.4":{"tag":"1.0.4","author":"badasswp","date":"2024-09-27 15:10:37"},"1.0.5":{"tag":"1.0.5","author":"badasswp","date":"2024-11-20 20:31:56"},"1.0.6":{"tag":"1.0.6","author":"badasswp","date":"2025-02-03 17:02:06"},"1.0.7":{"tag":"1.0.7","author":"badasswp","date":"2025-02-13 13:40:20"},"1.0.8":{"tag":"1.0.8","author":"badasswp","date":"2025-03-26 12:11:57"},"1.0.9":{"tag":"1.0.9","author":"badasswp","date":"2025-08-15 17:22:19"},"1.1.0":{"tag":"1.1.0","author":"badasswp","date":"2025-09-21 04:33:25"},"1.2.0":{"tag":"1.2.0","author":"badasswp","date":"2025-12-22 09:20:55"},"1.3.0":{"tag":"1.3.0","author":"badasswp","date":"2026-02-27 04:33:54"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3158861,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3158861,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3158861,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3158861,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.2.0","1.3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3158861,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3158861,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3158861,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Convert Blocks to JSON icon - Convert your blocks to JSON and vice versa.","2":"Convert Blocks to JSON options - View, Import Blocks &amp; Export Blocks.","3":"Convert Blocks to JSON sidebar - See Convert Blocks to JSON on sidebar."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4121,4154,1332,148076,1118],"plugin_category":[],"plugin_contributors":[256712,228863],"plugin_business_model":[],"class_list":["post-204833","plugin","type-plugin","status-publish","hentry","plugin_tags-blocks","plugin_tags-convert","plugin_tags-editor","plugin_tags-gutenberg","plugin_tags-json","plugin_contributors-activist507","plugin_contributors-badasswp","plugin_committers-badasswp"],"banners":{"banner":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/banner-772x250.png?rev=3158861","banner_2x":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/banner-1544x500.png?rev=3158861","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/icon-128x128.png?rev=3158861","icon_2x":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/icon-256x256.png?rev=3158861","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/screenshot-1.png?rev=3158861","caption":"Convert Blocks to JSON icon - Convert your blocks to JSON and vice versa."},{"src":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/screenshot-2.png?rev=3158861","caption":"Convert Blocks to JSON options - View, Import Blocks &amp; Export Blocks."},{"src":"https:\/\/ps.w.org\/convert-blocks-to-json\/assets\/screenshot-3.png?rev=3158861","caption":"Convert Blocks to JSON sidebar - See Convert Blocks to JSON on sidebar."}],"raw_content":"<!--section=description-->\n<p>This plugin offers a powerful solution for <strong>importing<\/strong> and <strong>exporting<\/strong> WordPress <strong>blocks<\/strong> in JSON format, making it easy to move posts across different WP websites. It is also beneficial for WP engineers who are adopting a <strong>Headless CMS<\/strong> approach and would like a way to be able to fetch data from the front-end using tools like <strong>React<\/strong>, Vue &amp; so on.<\/p>\n\n<p>It's <strong>simple<\/strong>, yet very <strong>powerful<\/strong>!<\/p>\n\n<h4>\u2714\ufe0f Features<\/h4>\n\n<p>Our plugin comes with everything you need for your WP blocks.<\/p>\n\n<p>\u2714\ufe0f <strong>Import &amp; Export WP blocks<\/strong> across multiple WordPress websites.\n\u2714\ufe0f <strong>Convert WP blocks to JSON<\/strong> easily &amp; quickly.\n\u2714\ufe0f Useful for <strong>Headless CMS websites<\/strong> or front-end projects working with React, Vue &amp; so on.\n\u2714\ufe0f Available in <strong>mutiple langauges<\/strong> such as Arabic, Chinese, Hebrew, Hindi, Russian, German, Italian, Croatian, Spanish, French, Japanese, Indonesia, Turkish, Polish, Dutch, Danish, Brazil &amp; Portuguese languages.\n\u2714\ufe0f Multiple <strong>custom hooks<\/strong> to enable you customize plugin to your heart's delight.\n\u2714\ufe0f <strong>Backward compatible<\/strong>, works with most WP versions.<\/p>\n\n<h4>\u2728 Getting Started<\/h4>\n\n<p>Create a new Post or open an existing Post. Locate the <strong>Convert Blocks to JSON<\/strong> icon at the <strong>top right<\/strong> corner of the Block Editor and click on it. From here you can do the following actions:<\/p>\n\n<ol>\n<li><strong>View JSON<\/strong> - Generate JSON data of the post you are working on.<\/li>\n<li><strong>Import JSON<\/strong> - Import JSON data from a JSON file to the post you are working on.<\/li>\n<li><strong>Export JSON<\/strong> - Export JSON data of the post to a JSON file.<\/li>\n<\/ol>\n\n<p>You can get a taste of how this works, by using the <a href=\"https:\/\/tastewp.com\/create\/NMS\/8.0\/6.7.0\/convert-blocks-to-json\/twentytwentythree?ni=true&amp;origin=wp\">demo<\/a> link.<\/p>\n\n<h4>\u2728 Why can't I upload JSON files?<\/h4>\n\n<p>You might need to configure the <code>ALLOW_UNFILTERED_UPLOADS<\/code> option in your <code>wp-config.php<\/code> file like so:<\/p>\n\n<pre><code>define( 'ALLOW_UNFILTERED_UPLOADS', true );\n<\/code><\/pre>\n\n<h4>\u26a1 Why Convert Blocks to JSON<\/h4>\n\n<ol>\n<li><p>This plugin is useful for users who want to be able to <strong>import<\/strong> and <strong>export<\/strong> articles or posts between different WordPress sites easily.<\/p><\/li>\n<li><p>This plugin is beneficial for WP engineers who are adopting a <strong>Headless CMS<\/strong> approach and would like a way to be able to fetch data from the front-end using tools like <strong>React<\/strong>, Vue &amp; so on.<\/p><\/li>\n<\/ol>\n\n<h4>\ud83d\udd0c\ud83c\udfa8 Plug and Play or Customize<\/h4>\n\n<p>The <strong>Convert Blocks to JSON<\/strong> plugin is built to work right out of the box. Simply install, activate and start using in your Block Editor.<\/p>\n\n<p>Want to add your personal touch? All of our documentation can be found <a href=\"https:\/\/github.com\/badasswp\/convert-blocks-to-json\">here<\/a>. You can override the plugin's behaviour with custom logic of your own using <a href=\"https:\/\/github.com\/badasswp\/convert-blocks-to-json?tab=readme-ov-file#hooks\">hooks<\/a>.<\/p>\n\n<h3>Contribute<\/h3>\n\n<p>If you'd like to contribute to the development of this plugin, you can find it on <a href=\"https:\/\/github.com\/badasswp\/convert-blocks-to-json\">GitHub<\/a>.<\/p>\n\n<p>To build, clone repo and run <code>yarn install &amp;&amp; yarn build<\/code><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Go to 'Plugins &gt; Add New' on your WordPress admin dashboard.<\/li>\n<li>Search for 'Convert Blocks to JSON' plugin from the official WordPress plugin repository.<\/li>\n<li>Click 'Install Now' and then 'Activate'.<\/li>\n<li>Proceed to your Block Editor and locate the top right corner.<\/li>\n<li>You should now see the 'Convert Blocks to JSON' icon available for use.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Feat: Add language translations for Japanese, Indonesia, Turkish, Polish, Dutch, Danish, Brazil, Portuguese.<\/li>\n<li>Feat: Add Image import functionality across websites.<\/li>\n<li>Feat: Add custom hooks - <code>cbtj.afterImport<\/code>, <code>cbtj.innerBlocks<\/code>.<\/li>\n<li>Feat: Add Notification modal during import.<\/li>\n<li>Feat: Clear previous notifications before starting import.<\/li>\n<li>Fix: Import issues with <code>core\/list<\/code> and <code>core\/list-item<\/code> blocks.<\/li>\n<li>Fix: Import issues with <code>core\/pargraph<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/heading<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/details<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/pullquote<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/cover<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/table<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/quote<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/media-text<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/gallery<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/audio<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/video<\/code> block.<\/li>\n<li>Fix: Import issues with <code>core\/footnotes<\/code> block.<\/li>\n<li>Fix: Incorrectly quoted translation bits.<\/li>\n<li>Refactor: Replace <code>get_400_response<\/code> with <code>get_error_response<\/code>.<\/li>\n<li>Test: Add e2e tests for plugin codebase.<\/li>\n<li>Chore: Add pull request template to repo.<\/li>\n<li>Docs: Update README docs.<\/li>\n<li>Tested up to WP 6.9.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Specify <code>wordpress-plugin<\/code> as Composer package type.<\/li>\n<li>Tested up to WP 6.9.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Fix: Resolve <code>Image<\/code> block import issues.<\/li>\n<li>Fix: Missing post title during import.<\/li>\n<li>Feat: Add custom hooks <code>cbtj_import_block<\/code>, <code>cbtj_export_block<\/code>, <code>cbtj_blocks<\/code>.<\/li>\n<li>Test: Add PHP unit tests to improve code.<\/li>\n<li>Docs: Update README docs.<\/li>\n<li>Tested up to WP 6.8.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Feat: Add REST namespace filter <code>cbtj_rest_namespace<\/code>.<\/li>\n<li>Refactor: Use classes for PHP codebase.<\/li>\n<li>Docs: Improve README docs.<\/li>\n<li>Tested up to WP 6.7.2.<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Bump up plugin version.<\/li>\n<li>Tested up to WP 6.8<\/li>\n<li>Update README docs.<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Enforce WP style linting across plugin.<\/li>\n<li>Add local dev env setup for WP.<\/li>\n<li>Update README docs.<\/li>\n<li>Tested up to WP 6.7.2.<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Ensure <code>REST<\/code> response for blocks' imports &amp; exports.<\/li>\n<li>Update Hook names <code>cbtj_rest_response<\/code> to <code>cbtj_rest_export<\/code>.<\/li>\n<li>Update function names.<\/li>\n<li>Update README docs.<\/li>\n<li>Tested up to WP 6.7.2.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Fix breaking\/faulty dependency.<\/li>\n<li>Fix linting issues.<\/li>\n<li>Tested up to WP 6.7.1.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fix CI\/CD build process.<\/li>\n<li>Update README text content.<\/li>\n<li>Bump up plugin version.<\/li>\n<li>Tested up to WP 6.7.0.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Provide graceful fallback for block arrays.<\/li>\n<li>Filter out empty|null blocks.<\/li>\n<li>Ignore <code>file_get_contents<\/code> warning.<\/li>\n<li>Update Permalink structure if empty, flush rules.<\/li>\n<li>Tested up to WP 6.6.2.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Replace <code>mt_rand<\/code> with <code>string<\/code> version for asset enqueuing.<\/li>\n<li>Fix Bugs and Linting issues.<\/li>\n<li>Updated README notes with screenshots.<\/li>\n<li>Tested up to WP 6.6.2.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Refactor: Use <code>is_user_permissible<\/code> for permissions callback.<\/li>\n<li>Updated Unit Tests coverage.<\/li>\n<li>Tested up to WP 6.6.2.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Added Import functionality.<\/li>\n<li>Custom Hooks - <code>cbtj_rest_import<\/code>.<\/li>\n<li>New custom REST API endpoint - <code>cbtj\/v1\/import<\/code>.<\/li>\n<li>Updated translation files to cater for Import modal window text translations.<\/li>\n<li>Added more Unit Tests coverage.<\/li>\n<li>Tested up to WP 6.6.2.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Convert &amp; Export Blocks to JSON.<\/li>\n<li>Custom Hooks - <code>cbtj_rest_response<\/code>.<\/li>\n<li>Provided support for Arabic, Chinese, Hebrew, Hindi, Russian, German, Italian, Croatian, Spanish &amp; French languages.<\/li>\n<li>Unit Tests coverage.<\/li>\n<li>Tested up to WP 6.6.1.<\/li>\n<\/ul>","raw_excerpt":"Convert your WP blocks to JSON. Import &amp; Export blocks across multiple WordPress websites. Generate JSON for your Headless CMS websites.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/204833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=204833"}],"author":[{"embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/badasswp"}],"wp:attachment":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=204833"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=204833"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=204833"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=204833"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=204833"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=204833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}