" A valid example of a SEN document is:
{ one: 1 two: 2 array: [a b c] yes: true } "
" A valid example of a SEN document is:
{ one: 1 two: 2 array: [a b c] yes: true } "
{
"one": 1,
"two": 2,
"array": ["a", "b", "c"],
"yes": true
}
That example also caught my attention, but in a bad way. It looks just like a comeback of one of the worst ideas of YAML.My immediate question would be what's the JSON for this SEN I've crafted:
{
array: [string1 string2 "true" true True TRUE yes y]
}
For more fun, there's a single problematic entry here, can you spot it?: 1.20.4
1.204.4
1.20
1.204
1.20.0
1.20.00
1.20-rc2
Or, level expert, there's exactly one problem here as well: 0a1f
0bfd
0c0c
0d01
0e02I don't get your other examples, can you explain? I assumed that 1.20.4 is not a valid SEN entry, because it starts with a digit but is not a number.
The true/"true" leaves a bad taste in my mouth after yaml, but overall SEN is an improvement :)
` { array: ["string1" "string2" "true" true "True" "TRUE" "yes" "y"] } `
"Strings can also be delimited with a single quote character which allows for a string to be either "abc" or 'abc'."
There's no mention of having a string without a delimeter.
> array: [a b c]
{:one 1 :two 2 :array [a b c] :yes true}
cf. https://github.com/edn-format/edn
Likewise, commas are considered whitespace. They are sometimes added to make lengthy maps easier to read.