Title: Invalid JSON
Last modified: September 17, 2026

---

# Invalid JSON

 *  [davejpeters](https://wordpress.org/support/users/davejpeters/)
 * (@davejpeters)
 * [2 weeks, 1 day ago](https://wordpress.org/support/topic/invalid-json-8/)
 * 
   the list shortcode returns invalid json. it returns the html for the nonce before
   the json object for some reason when saving:<input type=”hidden” id=”_do_prayer_nonce”
   name=”_do_prayer_nonce” value=”39129a015d”/><input type=”hidden” name=”_wp_http_referer”
   value=”/wp-json/wp/v2/pages/2670?_locale=user”/><input type=”hidden” id=”_pray_response_nonce”
   name=”_pray_response_nonce” value=”854ea96863″/><input type=”hidden” name=”_wp_http_referer”
   value=”/wp-json/wp/v2/pages/2670?_locale=user”/><input type=”hidden” id=”_do_prayer_nonce”
   name=”_do_prayer_nonce” value=”39129a015d”/><input type=”hidden” name=”_wp_http_referer”
   value=”/wp-json/wp/v2/pages/2670?_locale=user”/><input type=”hidden” id=”_pray_response_nonce”
   name=”_pray_response_nonce” value=”854ea96863″/><input type=”hidden” name=”_wp_http_referer”
   value=”/wp-json/wp/v2/pages/2670?_locale=user”/>{    “id”: 2670,    “date”: “
   2026-04-27T08:06:35”,    “date_gmt”: “2026-04-27T15:06:35”,    “guid”: {…all 
   that html shouldn’t be there. the form shortcode returns perfectly fine json.

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

 *  Plugin Author [Kim Gow](https://wordpress.org/support/users/abrg/)
 * (@abrg)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/invalid-json-8/#post-19024554)
 * Hello,
 * Please send website link and what plugins are installed. Thank you
 *  Plugin Author [Kim Gow](https://wordpress.org/support/users/abrg/)
 * (@abrg)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/invalid-json-8/#post-19027395)
 * Hello,
 * The shortcode is being rendered while WordPress is processing the REST request,
   a filter or another plugin attached to WordPress content/title rendering may 
   be injecting those nonce fields.
 * The list shortcode may be coming from another plugin, and GoPray is triggering
   that output while the wall is being rendered.
 * I modify the GoPray ZIP to make the wall shortcode much safer during REST/editor
   requests and also trace exactly where that unwanted output is coming from.
 * The fix is specifically targeted at the prayer-wall/list shortcode and the unwanted
   HTML being injected into the REST JSON response.
 * Please update to version 0.5
 *  Thank you
 *  Thread Starter [davejpeters](https://wordpress.org/support/users/davejpeters/)
 * (@davejpeters)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/invalid-json-8/#post-19027641)
 * I’ll take a look. Thank you

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-json-8%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/gopray/assets/icon-128x128.png?rev=3177527)
 * [GoPray](https://wordpress.org/plugins/gopray/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gopray/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gopray/)
 * [Active Topics](https://wordpress.org/support/plugin/gopray/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gopray/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gopray/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [davejpeters](https://wordpress.org/support/users/davejpeters/)
 * Last activity: [1 week, 1 day ago](https://wordpress.org/support/topic/invalid-json-8/#post-19027641)
 * Status: not resolved