Title: JSON-LD Error
Last modified: August 31, 2016

---

# JSON-LD Error

 *  Resolved [Quan88](https://wordpress.org/support/users/quan88/)
 * (@quan88)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/)
 * Hi when autoptimize is activated, [https://developers.google.com/structured-data/testing-tool/](https://developers.google.com/structured-data/testing-tool/)
   says there is Uncategorized Error “JSON-LD: There was an error parsing your JSON-
   LD”.
 * Any Solution? Thanks in advance
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981428)
 * the json+ld indeed contains something that should not be in there;
 * >  <script type=”application/ld+json”>**<!–[if IE]><![endif]–>**{
   >  “@context”:“
   > [http://schema.org&#8221](http://schema.org&#8221);, “@type”: “WebSite”, “name”:“
   > 洪氏风水”, “potentialAction”: { “@type”: “SearchAction”, “target”: “[http://fengshuimaster8u.com/?s=](http://fengshuimaster8u.com/?s=){
   > search_term}”, “query-input”: “required name=search_term” }, “url”: “[http://fengshuimaster8u.com/&#8221](http://fengshuimaster8u.com/&#8221);}
   > </script>
 * But I doubt this is autoptimize; when going to [http://fengshuimaster8u.com/?cache=busted](http://fengshuimaster8u.com/?cache=busted)(
   to make sure we get a nice fresh page), the IE-conditional is gone and the page
   validates.
 * conclusion: empty your page cache and all should be fine.
 * enjoy you sunday!
    frank
 *  Thread Starter [Quan88](https://wordpress.org/support/users/quan88/)
 * (@quan88)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981436)
 * Hi Frank,
 * I have actually activated and deactivated your plugin few times. When it is active,
   there is error, when deactivated, error is gone. Even clearing all caches. If
   you need I can send you the screenshots.
 * Do you think this is a plugin conflict?
 * Is it anyway serious or it can be ignored?
 * Thanks in advance
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981437)
 * no idea what is going on really;
    * when busting cache the error is gone, cfr.
   [https://developers.google.com/structured-data/testing-tool?url=http%253A%252F%252Ffengshuimaster8u.com%252F%253Fcache%253Dbusted](https://developers.google.com/structured-data/testing-tool?url=http%253A%252F%252Ffengshuimaster8u.com%252F%253Fcache%253Dbusted)(
   go to [http://fengshuimaster8u.com/?cache=busted](http://fengshuimaster8u.com/?cache=busted)
   to see the page source which includes autoptimize and does indeed have correct
   ld+json code * AO doesn’t do anything that would cause this, scripts are only
   taken into account if they don’t have type specified or if type=”text/javascript”,
   so it leaves application/ld+json quietly in place really.
 * based on this I can only suspect some other plugin (or your theme) messing things
   up, maybe conflicting with AO.
 * if this is serious or ignored: would not think this to be too serious really,
   although it is not ideal.
 * frank
 *  Thread Starter [Quan88](https://wordpress.org/support/users/quan88/)
 * (@quan88)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981583)
 * I have disable all minification and caching. Both Autoptimize and WPRocket. No
   errors. Since it is not minified. Can you see the reason for it?
 * Thanks in advance
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981585)
 * Afraid not Quan88; the non-optimized page doesn’t contain `<!--[if IE]><![endif]--
   >` anywhere.
 * I’m pretty convinced by now this isn’t due to Autoptimize actually, as;
    * AO
   ignores scripts that aren’t javascript (this one is application/json+ld) * AO
   ignores conditional comments (such as <!–[if IE]><![endif]–>) and never adds 
   them * the error was gone on the cache-busted version, which did have the CSS/
   JS optimized
 * Have you tried with Autoptimize but without Cloudflare?
 * frank
 *  Thread Starter [Quan88](https://wordpress.org/support/users/quan88/)
 * (@quan88)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981620)
 * Hi Frank,
 * I found out the problem. Autoptimize conflict with WP-Rocket. So should I raise
   this issue with you or WP-Rocket?
 * Thanks & regards,
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981623)
 * well, wp rocket is a pay-for solution, which implies 2 things:
    * I can’t test
   myself * You pay for support
 * so you should take it up with them (but don’t let them off the hook by just telling
   you to ditch AO, which would be the easy, to-be-expected answer). do keep me 
   posted on this!
 * frank
 *  Thread Starter [Quan88](https://wordpress.org/support/users/quan88/)
 * (@quan88)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981637)
 * Ok. Their support requested me to disable HTML minification from Autoptimize.
   Enabled their HTML minification instead. So far no error for JSON-ID after doing
   those.
 * Thanks for all your earlier help.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981638)
 * > Their support requested me to disable HTML minification from Autoptimize. Enabled
   > their HTML minification instead.
 * that is a nice workaround, but it doesn’t address the root cause that they insert
   the IE-conditional if AO does HTML minification. but it works now, so … 🙂

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

The topic ‘JSON-LD Error’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/json-ld-error/#post-6981638)
 * Status: resolved