Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

12
Task/JSON/Scheme/json.scm Normal file
View 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"}}