jonathan
jonathan copied to clipboard
JSON encoder and decoder.
If the json string is an array of :adjustable keywords, an error will be reported. ```common-lisp (let* ((test-string "{\"a\": 1234}") (test-string-array (make-array (length test-string) :element-type 'character :adjustable t :initial-contents test-string)))...
Hey there, What's the idiomatic way to decode a JSON into a CLOS class, if any? Thanks!
Is it possible to configure _jonathan_ so that it can output, and parse, JSON that has properties that are not in ALLCAPS? For example, the JSON may use all lowercase...
I've got a use-case where during runtime some data is read from disk; later on a JSON with lots of constant data and some variables will be queried. `COMPILE-ENCODE` as...
Currently this can be done via ```lisp (let ((fast-io:*default-output-buffer-size* *buffer-size*)) ...) ``` but having that as a `COMPILE-ENCODER` argument etc. would be much nicer. Thanks!
Here is how to reproduce the problem: ```lisp CL-USER> (asdf:load-system :jonathan) CL-USER> (jonathan:parse "{\"foo\": 123.56}") (:|foo| 123.56) CL-USER> (sb-ext:restrict-compiler-policy 'safety 3) CL-USER> (asdf:load-system :jonathan :force t) CL-USER> (jonathan:parse "{\"foo\": 123.56}")...
I'm attempting to encode an alist value, which is a nested list, as a nested array. cl-json does what I'm looking for: > (json:encode-json-to-string '((foo . bar) (baz . ((1...
It would be nice if it were possible to parse JSON arrays to any sequences. This pull request makes this possible without sacrificing on performance too much (or at all...