---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/54008#article
headline: "54008: Invalid JSON"
url: https://www.twilio.com/docs/api/errors/54008
inLanguage: en
dateModified: 2026-03-11T20:43:38.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 54008: Invalid JSON

Log Level: ERROR

## Description

The specified 'Data' parameter is not valid JSON.

### Possible causes

* The data you submitted is not JSON, or
* A missing or poorly-encoded character makes your JSON fail to parse.
* You crafted the HTTP request yourself, and did not percent-encode the submitted JSON data in the form parameters.

### Possible solutions

* Use a tool like [JSONLint](https://jsonlint.com/) to check the data you're sending for syntax errors.
* If you're crafting HTTP requests yourself, make sure all form data is percent-encoded.
