sharplispers / cl-json Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hankhero/cl-json
Json encoder and decoder for Common-Lisp
License: Other
This project forked from hankhero/cl-json
Json encoder and decoder for Common-Lisp
License: Other
Hi!
The CLOS decoder seems does not works anymore, even the code in the documentation:
(json:with-decoder-simple-clos-semantics
(let ((json:*json-symbols-package* nil))
(let ((x (json:decode-json-from-string
"{\"foo\": [1, 2, 3], \"bar\": true,
\"baz\": \"!\"}")))
(with-slots (foo bar baz) x
(values x foo bar baz)))))
signals an error:
SB-MOP:CLASS-SLOTS called on #<JSON:FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
Bye!
C.
I'm a bit confused about how the test suite is supposed to work. It seems like it is executed, but the return value from fiveam
is never checked. Currently 6 tests fail in the test suite on CI, but the script exits with 0
:
Did 166 checks.
Pass: 160 (96%)
Skip: 0 ( 0%)
Fail: 6 ( 3%)
Failure Details:
--------------------------------
JSON-BIND-IN-BIND-BUG in JSON []:
RESULT2
evaluated to
"(0 ((ID . pingId) (NAME . ping)) NIL
(((NAME . tableTennisGroupName) (ID . tableTennisGroupId))))"
which is not
STRING=
to
"(0 NIL NIL (NIL))"
--------------------------------
--------------------------------
TEST-ENCODE-JSON-CLOS-MAX-PACKAGE in JSON []:
Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1002A61933}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
AMOP, Generic Function SB-MOP:CLASS-SLOTS.
--------------------------------
--------------------------------
TEST-ENCODE-JSON-CLOS in JSON []:
Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {10029B0EE3}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
AMOP, Generic Function SB-MOP:CLASS-SLOTS.
--------------------------------
--------------------------------
TEST*JSON-SYMBOLS-PACKAGE* in JSON []:
Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1002997263}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
AMOP, Generic Function SB-MOP:CLASS-SLOTS.
--------------------------------
--------------------------------
JSON-OBJECT-WITH-PROTOTYPE in JSON []:
Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1003F6DB13}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
AMOP, Generic Function SB-MOP:CLASS-SLOTS.
--------------------------------
--------------------------------
JSON-OBJECT in JSON []:
Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1003D7E093}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
AMOP, Generic Function SB-MOP:CLASS-SLOTS.
--------------------------------
;
; compilation unit finished
; caught 6 STYLE-WARNING conditions
Script succeeded
See e.g. the latest run.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.