Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
16
Task/JSON/Lingo/json-3.lingo
Normal file
16
Task/JSON/Lingo/json-3.lingo
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
data_org = [\
|
||||
42,\
|
||||
3.14159,\
|
||||
[2, 4, #fooBar, "apples", "bananas", "cherries" ],\
|
||||
["foo": 1, #bar: VOID, "Hello": "world!"],\
|
||||
VOID\
|
||||
]
|
||||
|
||||
json_str = json_encode(data_org) -- valid according to JSONLint
|
||||
|
||||
data_decoded = json_decode(json_str)
|
||||
|
||||
put data_org
|
||||
-- [42, 3.1416, [2, 4, #fooBar, "apples", "bananas", "cherries"], ["foo": 1, #bar: <Void>, "Hello": "world!"], <Void>]
|
||||
put data_decoded
|
||||
-- [42, 3.1416, [2, 4, #fooBar, "apples", "bananas", "cherries"], ["foo": 1, #bar: <Void>, "Hello": "world!"], <Void>]
|
||||
Loading…
Add table
Add a link
Reference in a new issue