Title: Malformed Json
Last modified: November 9, 2019

---

# Malformed Json

 *  Resolved [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/malformed-json/)
 * Hi,
    Nice plugin. After the last update (around 2 weeks) I’m unable to get the
   information with API. I got JSON error 4. It is not limited to just one payment.
   It is odd because if I put the string in some online site to test it works. I
   use PHP 7.3. Do you have, please, some suggestions on how debug this? I ran some
   searches but was unable to find the solution. Thanks in advance. Cheers, Bill

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

 *  [Pratik Jain](https://wordpress.org/support/users/pratik-jain/)
 * (@pratik-jain)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/malformed-json/#post-12116949)
 * Hi [@sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Can you please provide me more details which API are you using and getting the
   error? so I can take a look into it and try to understand it.
 *  Thread Starter [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/malformed-json/#post-12117303)
 * Hey Pratik,
 * Here is:
    [http://mysite.net/edd-api/sales/?key=xxx](http://mysite.net/edd-api/sales/?key=xxx)
 * Cheers,
    Bill
 *  [Pratik Jain](https://wordpress.org/support/users/pratik-jain/)
 * (@pratik-jain)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/malformed-json/#post-12132708)
 * Hi [@sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Thanks for your response. I will take a look at sales API from my side and update
   you about it.
 *  Thread Starter [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/malformed-json/#post-12140198)
 * Hey Pratik,
 * Thanks.
    I found some javascript code coming from rest api. I’m able to make 
   it working removing this code but I didn’t find for while how and why this code
   show up. Here is the javascript: document.cookie = “billjavascript=true” I didn’t
   find any php append in my htaccess file.
 * Cheers,
    Bill
 *  [Pratik Jain](https://wordpress.org/support/users/pratik-jain/)
 * (@pratik-jain)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/malformed-json/#post-12150144)
 * Hi [@sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Thanks for your patience. I have tried the `/edd-api/sales/` on my local and 
   it is working perfectly without any JSON issue.
 * It looks like that there is something at your end. Please check by deactivating
   other plugins or try to switch your theme to default WordPress theme.
 * Before this please take a backup of database. Just for safe site 🙂
 *  Thread Starter [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/malformed-json/#post-12150355)
 * Hey Pratik,
 * THANKS A LOT!
    5 Star.
 * Cheers,
    Bill

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

The topic ‘Malformed Json’ is closed to new replies.

 * ![](https://ps.w.org/easy-digital-downloads/assets/icon.svg?rev=3455837)
 * [Easy Digital Downloads – eCommerce Payments and Subscriptions made easy](https://wordpress.org/plugins/easy-digital-downloads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-digital-downloads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-digital-downloads/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-digital-downloads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-digital-downloads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-digital-downloads/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/malformed-json/#post-12150355)
 * Status: resolved