a JSON reader for Common Lisp
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Yuki Izumi 6f49570ef4
Minimal JSON reader for CL
pirms 8 gadiem
README.md Minimal JSON reader for CL pirms 3 gadiem
minimal-json.lisp Minimal JSON reader for CL pirms 3 gadiem

README.md

CL-USER> {"literal": "json syntax", "pretty": {"cool": "I think."}}
{"literal": "json syntax", "pretty": {"cool": "I think."}}
CL-USER> (setf *eg* {"literal": "json syntax", "pretty": {"cool": "I think."}})
{"literal": "json syntax", "pretty": {"cool": "I think."}}
CL-USER> (gethash "literal" *eg*)
"json syntax"
T
CL-USER> (gethash "pretty" *eg*)
{"cool": "I think."}
T
CL-USER> (gethash "cool" (gethash "pretty" *eg*))
"I think."
T
CL-USER> { "abc": 1, "def": {"x": "y", "m": (1 2 3 raw lisp oh my) } }
{"abc": 1, "def": {"x": "y", "m": (1 2 3 RAW LISP OH MY)}}
CL-USER>