Examples

minimal.json

The smallest interesting FSON file: an object with a comment, one bare key and one quoted key. Every line of it is also valid JSON5, and all but the comment is valid JSON.

minimal.json
Read walkthrough
JSONCOMMENTSBARE-KEYS
feature-tour.json

One file that exercises every FSON addition at once — nested block comments, -- disabled members, a |-block string, hex and Infinity numbers, single-quoted strings and trailing commas — so you can see them side by side.

feature-tour.json
Read walkthrough
--DISABLED|-BLOCKHEXINFINITYTRAILING-COMMA
server-config.json

A realistic service configuration: nested objects, a disabled credential kept for reference, a key with a space, an array of retry delays. The file the dotted-path getters in the User Guide query.

server-config.json
Read walkthrough
CONFIGDOTTED-PATHS--DISABLED
include-defaults/

A three-file %include chain: service.fson merges defaults from base.fson and binds secrets.fson under an alias. Shows host-wins shallow merge, relative-path resolution and the provenance API.

include-defaults/
Read walkthrough
%INCLUDEMERGEALIASPROVENANCE