Title: Syntax error
Last modified: September 4, 2024

---

# Syntax error

 *  Resolved [akkiyoast](https://wordpress.org/support/users/akkiyoast/)
 * (@akkiyoast)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/syntax-error-238/)
 * After installing the latest version of Yoast SEO (23.4), Google Search Console
   showed an error indicating that there was a syntax error in the structured data
   on the page in the “Unparsable structured data” section. This issue did not occur
   with the previous version.
 * ChatGPT provided the following response:
 * The cause of this error may be that the JSON-LD structured data has an incorrect
   syntax. Specifically, the issue lies in the part `"valueRequired":!0`.
 * Details of the problem: `!0` means “true” in JavaScript, but this format is not
   allowed in JSON. In JSON, when representing a boolean value, it must be written
   as `true` or `false`.
 * Therefore, to correct the JSON format, `"valueRequired":true` needs to be used
   instead.
 * Could you please provide a solution?

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

 *  [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * (@611shabnam)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/syntax-error-238/#post-17993659)
 * Hi [@akkiyoast](https://wordpress.org/support/users/akkiyoast/)
 * Can you kindly share with us the URL of the affected site?
    -  This reply was modified 1 year, 8 months ago by [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/).
 *  Thread Starter [akkiyoast](https://wordpress.org/support/users/akkiyoast/)
 * (@akkiyoast)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/syntax-error-238/#post-17994440)
 * I apologize, but I cannot share the URL. However, I will share information about
   my site.
 * **WordPress**: version 6.6.1
   **Theme**: Cocoon (version 2.7.4.3), Cocoon-child(
   version 1.1.3)**Plugins**:
    - ACF QuickEdit Fields (version 3.3.7)
    - Advanced Custom Fields (version 6.2.4)
    - Contact Form 7 (version 5.9.8)
    - Really Simple CSV Importer (version 1.3)
    - Simple Image Sizes (version 3.2.3)
    - Term Management Tools (version 2.0.1)
    - WebSub (FKA. PubSubHubbub) (version 3.2.1)
    - Yoast SEO (version 23.3)
 * Currently, I am using an older version of Yoast SEO due to the error.
 * Below is the location of the HTML structure error that occurred in Google Search
   Console.
   The error message displayed in Google Search Console was: “The value
   type is incorrect.”The domain of my site has been replaced with “example” and“
   example.com”.
 * {“@type”:”PropertyValueSpecification”,”valueRequired”:!0,”valueName”:”search_term_string”}}],”
   inLanguage”:”ja”},{“@type”:”Person”,”@id”:”[https://example.com/#/schema/person/e5156939b8247ac0c86a415a3fea8256&#8243](https://example.com/#/schema/person/e5156939b8247ac0c86a415a3fea8256&#8243);,”
   name”:”example”,”image”:{“@type”:”ImageObject”,”inLanguage”:”ja”,”@id”:”[https://example.com/#/schema/person/image/&#8221](https://example.com/#/schema/person/image/&#8221);,”
   url”:”[https://secure.gravatar.com/avatar/0dacc565fdbf730f17991684435c82d7?s=96&d=mm&r=g&#8221](https://secure.gravatar.com/avatar/0dacc565fdbf730f17991684435c82d7?s=96&d=mm&r=g&#8221);,”
   contentUrl”:”[https://secure.gravatar.com/avatar/0dacc565fdbf730f17991684435c82d7?s=96&d=mm&r=g&#8221](https://secure.gravatar.com/avatar/0dacc565fdbf730f17991684435c82d7?s=96&d=mm&r=g&#8221);,”
   caption”:”example”},”sameAs”:[“[https://example.com”%5D](https://example.com”%5D)}]}
   
   Thank you in advance for your cooperation.
    -  This reply was modified 1 year, 8 months ago by [akkiyoast](https://wordpress.org/support/users/akkiyoast/).
 *  [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * (@611shabnam)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/syntax-error-238/#post-17995741)
 * Hi [@akkiyoast](https://wordpress.org/support/users/akkiyoast/)
 * Kindly test the URL in the Rich Results Test tool, click on the error “Unparsable
   structured data” and see which block of code is flagged for the “Unparsable structured
   data” error. You should see it on the right side.
 * Please provide us with screenshots of what you see from Rich Results Test tool.
   You can use any image-sharing service like [https://pasteboard.co/](https://pasteboard.co/),
   [https://snag.gy/](https://snag.gy/), [https://imgur.com/](https://imgur.com/),
   [https://snipboard.io/](https://snipboard.io/), or even upload the screenshot
   to your own website. Once you upload it to an image-sharing service, please share
   the link to the image here.

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

The topic ‘Syntax error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/syntax-error-238/#post-17995741)
 * Status: resolved