a JSON reader for Common Lisp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yuki Izumi 6f49570ef4
Minimal JSON reader for CL
hace 8 años
README.md Minimal JSON reader for CL hace 3 años
minimal-json.lisp Minimal JSON reader for CL hace 3 años

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>