Data · 1 file

Sample JSON5 File

JSON5 extends JSON with comments, trailing commas, unquoted keys and more. It is used for configuration files, including Babel and Chromium.

JSON5 · 466 B

JSON5 config file

JSON5 with comments, unquoted keys, single quotes, trailing commas, hex numbers, Infinity and multi-line strings.

CC0 · free for any use · Verified by an independent tool · Report a problem

sample-config.json5 — first linesJSON5
// Sample JSON5 config — samplefiles.com
{
  // Comments, unquoted keys and trailing commas are all allowed.
  name: 'sample-app',
  version: '1.4.2',
  debug: false,
  server: {
    host: '0.0.0.0',
    port: 8080,
    timeout: 30.5,
    origins: ['https://example.com', 'https://app.example.com',],
  },
  maxUpload: 0x7FFFFFFF, // hexadecimal numbers
  ratio: .5,             // leading decimal point
  infinity: Infinity,
  multiline: 'line one \
line two',
}

File details

Size
466 B (466 bytes)
MIME type
application/json5
SHA-256
2e3e05bc5a7f70de653d2bc98e08942230f4567dd42f4c8b208d27db1c49f219
MD5
e505450bea10202a80d818f07cad1084

Download from the command line

curl -L -o sample-config.json5 https://files.samplefiles.com/data/json5/sample-config.json5

Or check the download in your browser with the checksum calculator.