# E3017

Compiler diagnostic name: `json_parse_error`.

JSON parse error. This diagnostic is used for legacy JSON package
configuration files such as `moon.pkg.json`.

The current package configuration format is `moon.pkg`, which is not JSON. If
you still maintain a legacy `moon.pkg.json`, this error is likely to be caused
by a missing comma, a missing closing brace, or another JSON syntax issue.

## Erroneous example

```json
{
  "is-main": true
  "import": [] // Error: Expect_comma_or_rbrace
}
```

## Suggestion

Prefer migrating the package configuration to `moon.pkg`. If you must keep the
legacy JSON file for now, fix the JSON syntax.

This page has no checked source example because legacy JSON configuration is
parsed before ordinary `moon check` diagnostic rendering is available.

```json
{
  "is-main": true,
  "import": []
}
```
