json-mop
json-mop copied to clipboard
A metaclass for bridging CLOS and JSON objects
https://quickref.common-lisp.net/json-mop.html looks quite bad.
https://github.com/gschjetne/json-mop/issues/1 handled the lisp->json direction. The json->lisp direction is still broken for inheritence. The patch is quite simple: ``` (loop for class in (closer-mop:class-precedence-list (find-class class)) do (loop for slot...
JSON maps (hash-tables) with strings as keys and objects as values can not be consumed so far. A function for that would be useful. I was not sure how to...
Now json-mop can be tested with `(asdf:test-system 'json-mop)`.
I can succesfully consume a class `person` from the according json format, but how do I invoke json-to-clos if my json endpoint returns a list of `person`. Being fairly new...
https://json-schema.org/ This is useful for many things, like automatically generating a CLOS hierarchy from a schema to consume, or generating a schema for other applications to use when consuming JSON...
It is quite useful to specify required slots. Therefore we can add an `required` slot to the `json-serializable-slot` class. Then in the `initialize-slots-from-json` function it will be checked for each...
[This ](https://github.com/Zulu-Inuoe/jzon) seems to be the gold standard for JSON processing in Common Lisp these days. It also has the advantage of having a stream oriented parser, which saves the...
For some reason the pipeline [hangs for hours, perhaps indefinitely](https://github.com/gschjetne/json-mop/actions/runs/5822740626) on the Roswell install step for Clozure Common Lisp. We should find out why and get it working again.
Using :json-type (:hash-table object) is not supported.