JSON Preserves schema!

This commit is contained in:
Tony Garnock-Jones 2021-05-27 00:28:57 +02:00
parent 264c4b9d2e
commit ef7cea09bf
1 changed files with 8 additions and 0 deletions

View File

@ -215,6 +215,14 @@ equivalent compact machine-readable syntax.
`null` are all read as `Symbol`s, and that `SignedInteger`s are
never read as `Double`s.
The following [schema](./preserves-schema.html) definitions match
exactly the JSON subset of a Preserves input:
version 1 .
JSON = @string string / @integer int / @double double / @boolean JSONBoolean / @null =null
/ @array [JSON ...] / @object { string: JSON ...:... } .
JSONBoolean = =true / =false .
### Character set.
[ABNF][abnf] allows easy definition of US-ASCII-based languages.