Title: Invalid json
Last modified: July 2, 2023

---

# Invalid json

 *  [fesenkoe](https://wordpress.org/support/users/fesenkoe/)
 * (@fesenkoe)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/invalid-json-2/)
 * Hi! I am using API XML/JSON Request. If I send data with double quote from field“
   Additional Info” ([message]), we don’t get this data, because json string is 
   not valid {“message”: “some “message””}. I added str_replace for $template = 
   str_replace( “[{$form_key}]”, str_replace(‘”‘, ‘\”, $value), $template ), it’s
   work. Can you fix this moment or add some filter maybe?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-json-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Invalid json’ is closed to new replies.

 * ![](https://ps.w.org/wpcf7-redirect/assets/icon-256x256.gif?rev=3416723)
 * [Redirection for Contact Form 7](https://wordpress.org/plugins/wpcf7-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpcf7-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpcf7-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/wpcf7-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpcf7-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpcf7-redirect/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [fesenkoe](https://wordpress.org/support/users/fesenkoe/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/invalid-json-2/)
 * Status: not resolved