# JSON5

> Translate JSON5 files in Crowdin

URL: https://store.crowdin.com/json5
Identifier: json5
Category: File Formats
Type: App
Author: Crowdin

This application adds support for JSON5, which is a superset of JSON, making it easier to write and maintain by hand.

> JSON5 is an extension of JSON, designed for easier manual writing and maintenance, and is a superset of JSON, including some ES5.1 features.

## Sample file

```
{
  // This is a comprehensive JSON5 example file
  // Demonstrating all JSON5 features
  
  /* Project Information */
  project: {
    name: 'Advanced JSON5 Example',
    version: '2.1.0',
    author: 'JSON5 Developer',
    license: 'MIT',
    description: "This is a multi-line string\nthat demonstrates JSON5's support\nfor template literals and line breaks",
  },

  // Feature showcase
  features: [
    'comments (single and multi-line)',
    'unquoted object keys',
    'single and double quotes',
    'trailing commas',
    'hexadecimal numbers',
    'leading/trailing decimal points',
    'positive signs',
    'multi-line strings',
  ],

  // Array examples with trailing commas
  environments: [
    'development',
    'testing',
    'staging',
    'production', // trailing comma allowed
  ],

  // Feature flags
  featureFlags: {
    enableNewUI: true,
    betaFeatures: false,
    experimentalAPIs: true,
    debugMode: false, // trailing comma in objects too
  }

  // Development tools
  devTools: {
    linting: {
      enabled: true,
      rules: ['eslint:recommended', 'prettier'],
    },
    testing: {
      framework: 'jest',
      coverage: {
        threshold: 80,
        reports: ['text', 'html', 'lcov'],
      },
    },
    bundler: 'webpack',
  },
}
```
