Zapier · API by Zapier

JSON errors in the request body

Short answer

A JSON parsing error in an API by Zapier step means the request body is not valid JSON. Validate the body, quote mapped fields properly, and escape special characters with a Formatter step.

VerifiedLast verified

01Error text

Zapier error
A JSON parsing error

02Likely causes

  • Missing or extra quotes, brackets, or commas.
  • Mapped fields containing special characters, such as quotes, that break the JSON.
  • Trailing commas after the last item in an object or array.

03How to fix it

  1. Paste the request body into a JSON validator.
  2. Check that all mapped fields are properly quoted, for example {"name": "{{name}}"}.
  3. For fields with special characters, escape the value with a Formatter step before mapping it into the JSON body.

iNotes

Zapier does not quote a fixed message for this problem. The text above is its description of the error.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Zapier work:Open Zapier jobsZapier rates and salaries

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.