jeko2000 / zjson

A reference Common Lisp JSON [en|de]coding library
0 stars 0 forks source link

Add examples of JSON pretty printer #3

Open jeko2000 opened 4 years ago

jeko2000 commented 4 years ago

Consider adding a recipe or two on how to use the encode-prettily and encode-prettily-to-string methods.

(zjson:encode-prettily-to-string (zjson:make-jso "key1" "value1" "key2" (list 1 2 3)))
;;"{
;;  \"key2\": [
;;    1,
;;    2,
;;    3
;;  ],
;;  \"key1\": \"value1\"
;;}"