---
title: JSONSyntaxError
description: Identifies invalid JSON files in themes.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/json-syntax-error
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/json-syntax-error.md
api_name: liquid
---

# JSONSyntax​Error

Identifies invalid JSON files in themes.

***

## Examples

The following examples contain code snippets that either fail or pass this check.

### ✗ Fail

```json
{
"key": "value" %
}
```

```json
{
"quotes": 'These are single quotes'
}
```

### ✓ Pass

```json
{
"key": "value",
}
```

```json
{
"quotes": "This value uses double quotes"
}
```

***

## Disabling this check

Disabling this check isn't recommended.

***

## Aliases

For backward compatibility with configuration files made for Theme Check `v1.X.X`, this check is also recognized in configuration files with the following names:

* `ValidJson`

***
