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

# Validate JSON

> Send JSON as plain text to check if it is correctly formatted. Useful for debugging requests from no-code tools such as Bubble or Make, or 500 errors.

Send JSON to validate if correctly formatted.
You can validate your JSON by using either an online linter, such as [https://jsonlint.com/](https://jsonlint.com/) or using [Postman](https://www.ayrshare.com/docs/testing/postman.md).

If you use a no-code tool such as Bubble or Make or receive a 500 "Bad Request" response, this endpoint is useful to debug the JSON request.

## Header Parameters

**Authorization** `string` *required*

[API Key](https://www.ayrshare.com/docs/apis/overview.md#authorization) of the Primary Profile.

Format: `Authorization: Bearer API_KEY`

<ul>
  <li>Send data as text. If using Postman, please be sure to select "Text" as the type.</li>
  <li>Set the `"Content-Type": "text/plain"`.</li>
</ul>

## Request Examples

Send any json to this endpoint to validate it.

Below is an example of invalid JSON using Postman. Can you spot it? A missing comma at the end on the second parameter `platforms`.

Be sure to set the `Content-Type` in the header as `text/plain` and select "Text" when sending.

![Postman Validate JSON](https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/validate/json.webp?fit=max\&auto=format\&n=Nmrhj2Gh7WSf62Bh\&q=85\&s=97c9aba02aba44ee47247c295523d259)

```json 200: OK Valid JSON theme={"system"}
{
    "status": "success",
    "message": "Valid JSON. Nice Job!"
}
```

```json 400: Bad Request Invalid JSON theme={"system"}
{
  "status": "error",
  "message": "JSON is not valid. Unexpected end of JSON input while parsing near '{\"test\": \"happy}'"
}
```


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