Homepage

ValidJSON

Last edit: Apr 01, 2026

ValidJSON

Severity: error | Type: JSON | Aliases: ValidJson

This check exists to prevent invalid JSON files in your platformOS application. It validates that all .json files in your project contain well-formed JSON. When a JSON schema is available for a particular file, the check also validates the content against that schema.

Examples

✗ Incorrect Code Example (Avoid using this):

{
  "name": "My App",
  "version": 1,
  "tags": ["liquid", "platformos",]
}

The trailing comma in the array is invalid JSON.

{
  name: "My App"
}

Property names must be quoted strings in JSON.

✓ Correct Code Example (Use this instead):

{
  "name": "My App",
  "version": 1,
  "tags": ["liquid", "platformos"]
}

Configuration

The default configuration for this check:

ValidJSON:
  enabled: true
  severity: error

Disabling This Check

Disabling this check is not recommended. Invalid JSON files will cause errors at runtime.

Questions?

We are always happy to help with any questions you may have.

contact us