Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/JSON/Scheme/json.ss
Normal file
12
Task/JSON/Scheme/json.ss
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(use json)
|
||||
(define object-example
|
||||
(with-input-from-string "{\"foo\": \"bar\", \"baz\": [1, 2, 3]}"
|
||||
json-read))
|
||||
(pp object-example)
|
||||
; this prints #(("foo" . "bar") ("baz" 1 2 3))
|
||||
|
||||
(json-write #([foo . bar]
|
||||
[baz 1 2 3]
|
||||
[qux . #((rosetta . code))]))
|
||||
; this writes the following:
|
||||
; {"foo": "bar", "baz": [1, 2, 3], "qux": {"foo": "bar"}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue