Title: Schema JSON not working
Last modified: September 12, 2024

---

# Schema JSON not working

 *  Resolved [tomrobertsuk](https://wordpress.org/support/users/tomrobertsuk/)
 * (@tomrobertsuk)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/schema-json-not-working/)
 * Hi Dilip,
 * I’ve installed the plugin and added some FAQs, but I’m not seeing any JSON on
   the page. Is the plugin compatible with a full site editing theme?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Dilip Bheda](https://wordpress.org/support/users/dilipbheda/)
 * (@dilipbheda)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/schema-json-not-working/#post-18026328)
 * [@tomrobertsuk](https://wordpress.org/support/users/tomrobertsuk/) I’ve checked
   with the FSE editor and it seems working fine, You can check with [https://playground.wordpress.net/](https://playground.wordpress.net/)
 * Thanks
 *  [Cyril Batillat](https://wordpress.org/support/users/cyrilbatillat/)
 * (@cyrilbatillat)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/schema-json-not-working/#post-18321150)
 * Hi, 
   `\Faq_Block_For_Gutenberg::gutenberg_faq_block_parse_blocks` uses `parse_blocks()`
   function, which returns an array of **first-level** blocks. The fact is that 
   each block may contain nested block(s) where FAQ may reside.
 * So, to parse the entire post content, I think you need to make this function 
   recursive.
   Something like that:
 *     ```wp-block-code
       private function gutenberg_faq_block_parse_blocks($blocks = null) {    global $post;    $block_data = array();    if( empty($blocks) && $post ){        $blocks = isset( $post->post_content ) ? parse_blocks( $post->post_content ) : array();    }    if( !empty($blocks) ){        foreach( $blocks as $block ){            if( 'faq-block-for-gutenberg/faq' === $block['blockName'] ){                $block_data[] = $block;                continue;            }            // Search in nested blocks            if( !empty($block['innerBlocks']) ) {                $block_data = array_merge( $block_data, $this->gutenberg_faq_block_parse_blocks($block['innerBlocks']) );            }        }    }    return $block_data;}
       ```
   
 *  Plugin Author [Dilip Bheda](https://wordpress.org/support/users/dilipbheda/)
 * (@dilipbheda)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/schema-json-not-working/#post-18321980)
 * [@cyrilbatillat](https://wordpress.org/support/users/cyrilbatillat/) Thank you!
 * I’ve resolved the schema JSON issue with nested blocks. Please check with the
   latest plugin release (v2.7) and let me know if you encounter any issues.
 * I’m going to mark this ticket as resolved. Feel free to open a new support ticket
   if you have any issues or suggestions.
 * cc [@tomrobertsuk](https://wordpress.org/support/users/tomrobertsuk/)
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Schema JSON not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/faq-block-for-gutenberg.svg)
 * [FAQ Block For Gutenberg](https://wordpress.org/plugins/faq-block-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/faq-block-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/faq-block-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/faq-block-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/faq-block-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/faq-block-for-gutenberg/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Dilip Bheda](https://wordpress.org/support/users/dilipbheda/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/schema-json-not-working/#post-18321980)
 * Status: resolved