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 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
Download from the command line
curl -L -o sample-config.json5 https://files.samplefiles.com/data/json5/sample-config.json5wget https://files.samplefiles.com/data/json5/sample-config.json5https://files.samplefiles.com/data/json5/sample-config.json5printf '%s %s\n' 2e3e05bc5a7f70de653d2bc98e08942230f4567dd42f4c8b208d27db1c49f219 sample-config.json5 | shasum -a 256 -cOr check the download in your browser with the checksum calculator.