• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

JSON Error while trying to connect to WordPress and Post

I am having trouble connecting to WordPress still.

Error as below
Code - rest_invalid_json
Message - Invalid JSON body passed.
Data Json Error Message - Control character error, possibly incorrectly encoded
 
P

Pabblymember11

Guest
Hey @unoblogger

In the WordPress action step, you cannot pass the double quotes in the "Post Content" field. Otherwise, it will break the JSON structure in which the data gets sent to the application.

So as a solution, you can replace the double quotes with double single quotes with the help of the "Replace Text" action step.

1665136981401.png
 

bilge43

Member
Hi @Supreme , I get the data from chatgpt. I need quotation marks. I don't want to replace it with another character. Isn't there another way? In another question, there are ``` characters in the data. These make the code blocks look correct. But when the post is published in WordPress, it does not work correctly. You can find examples below.

wordpress post
1710681788694.png


I want it to look like this.

1710681912481.png
 
P

Pabblymember11

Guest
Top