On 19 October 2012 17:29, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Dale,
We have a web app where users sometimes have to enter some short pieces of JSON - because we were lazy and did not provide a proper interface ;-) You wouldn't believe in how many ways they make syntax errors and don't understand it !
Alternating key value elements is not that worse than key:value or key->value IMO, but it is a bit worse, agreed. The advantage is that you don't need extra syntax/semantics.
Also, we could agree on
#(#Time '15:24:01Z') #(#Date '2012-10-19') #(#DateAndTime '2012-10-19T15:24:01Z')
with dashed and colons being optional.
Sven
BTW: Is the # in front of Symbols needed ?
good question.. strict syntax, probably yes.. but array literals allow you to omit it i.e.: #( ( foo ) ) == #( #( #foo) ) -- Best regards, Igor Stasenko.