Jump to content

JSON: Difference between revisions

57 bytes removed ,  11 years ago
No edit summary
Line 205:
</lang>
 
<pre>(ql:quickloadTo load '("cl-json")):
Load 1 ASDF system:
cl-json
; Loading "cl-json"
 
(s "[{\"foo\": [1, 2, 3], \"bar\": true, \"baz\": \"!\"},")quux",0.23529412,4.25]
(json:encode-json
'#( ((foo:FOO . (1 2 3)) (bar:BAR . tT) (baz:BAZ . #\"!"))
"quux" 4/17 4.25))
 
(print (with-input-from-string
(s "{\"foo\": [1, 2, 3], \"bar\": true, \"baz\": \"!\"}")
(json:decode-json s)))
</pre>
 
=={{header|Clojure}}==
Library: [https://github.com/clojure/data.json data.json]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.