> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgelinepf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# INVALID_JSON

> The request body isn't valid JSON.

`400 Bad Request` · type `invalid_request`

**When it happens**

The body of a `POST` couldn't be parsed as JSON: a trailing comma, a single-quoted string, or a body built by string concatenation. (An empty body is read as `{}` and then fails validation instead.)

**What to do**

Serialize the body with your language's JSON library, and send `Content-Type: application/json`.

## Example

```json 400 Bad Request theme={null}
{
  "error": {
    "type": "invalid_request",
    "code": "INVALID_JSON",
    "message": "The request body is not valid JSON.",
    "doc_url": "https://docs.bridgelinepf.com/errors#INVALID_JSON",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](/errors), or how to [handle errors](/guides/errors).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.