Anonymous user
JSON: Difference between revisions
m
→{{header|Tailspin}}: syntax update
m (→{{header|Tailspin}}: syntax update) |
|||
Line 4,029:
end encodeChars
$ -> #
when <[]> do
'[$(1) -> printJson;$(2..last)... -> ', $ -> printJson;';]' !
when <{}> do
[ $... ] -> '{$(1) -> printKeyValue;$(2..
when <..0|0..> do
'$;'!
when <'.*'> do
[ $... -> encodeChars ] -> '"$...;"' !
// Other types do not yet exist in Tailspin
end printJson
|