a JSON reader for Common Lisp
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Yuki Izumi 6f49570ef4
Minimal JSON reader for CL
8 年前
README.md Minimal JSON reader for CL 3 年前
minimal-json.lisp Minimal JSON reader for CL 3 年前

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>