Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 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