@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

Common LispでJavaScriptのJSON.stringify←→JSON.parseのようなことをする

S式の文字列をS式にしたかった。

JavaScript Common Lisp
JSON.stringify(obj) (prin1-to-string sexp)(format nil "~S" sexp)
JSON.parse(string) (read-from-string string)(with-input-from-string (in string) (read in))

Twitterで教えていただきました。ありがとうございます。

readを使うところまではなんとなくわかっていたので、clqr見てみるべきだった。