Title: PHP 7 error with JSON.parse
Last modified: September 1, 2016

---

# PHP 7 error with JSON.parse

 *  Resolved [dreadedhamish](https://wordpress.org/support/users/dreadedhamish/)
 * (@dreadedhamish)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-7-error-with-jsonparse/)
 * I’m getting this error when testing with PHP 7. No error on PHP 5.6.
 * SyntaxError: JSON.parse: expected ‘,’ or ‘}’ after property value in object at
   line 2 column 1277 of the JSON data
 * Anyone resolved this?
 * [https://wordpress.org/plugins/infinite-transporter/](https://wordpress.org/plugins/infinite-transporter/)

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

 *  Thread Starter [dreadedhamish](https://wordpress.org/support/users/dreadedhamish/)
 * (@dreadedhamish)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-7-error-with-jsonparse/#post-7665897)
 * I think I’ve narrowed it down to a new relic script that is in the <head>, and
   when called with JSON.parse is breaking the syntax.
 * Is there a way to exclude a script from the JSON?
 *  Thread Starter [dreadedhamish](https://wordpress.org/support/users/dreadedhamish/)
 * (@dreadedhamish)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-7-error-with-jsonparse/#post-7665980)
 * Narrowed it down further – there was a newrelic script that my host (cloudways)
   injected into the head of every page. Getting them to remove it fixed the issue.

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

The topic ‘PHP 7 error with JSON.parse’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-transporter.svg)
 * [Infinite Post Transporter](https://wordpress.org/plugins/infinite-transporter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-transporter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-transporter/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-transporter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-transporter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-transporter/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [dreadedhamish](https://wordpress.org/support/users/dreadedhamish/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/php-7-error-with-jsonparse/#post-7665980)
 * Status: resolved