summaryrefslogtreecommitdiff
path: root/json.lisp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2022-11-04 17:59:50 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2022-11-04 17:59:50 -0300
commitc056fba57c695c0504ef21c7cb3ad430862b53e8 (patch)
tree3ecf44d34e1adf0fc4d79361cf3a80f2ae81d068 /json.lisp
parentb69c1857f9b1f811d510f70cff2e15bc02bb2fea (diff)
downloadjson-c056fba57c695c0504ef21c7cb3ad430862b53e8.tar.gz
json-c056fba57c695c0504ef21c7cb3ad430862b53e8.zip
Change how array and object return empty value
Diffstat (limited to 'json.lisp')
-rw-r--r--json.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/json.lisp b/json.lisp
index ab6d52b..2829abe 100644
--- a/json.lisp
+++ b/json.lisp
@@ -99,7 +99,7 @@
(if vn
(cons v0 vn)
(list v0))
- 'empty-array)))
+ nil)))
(defparameter json-object
(let ((json-pair
@@ -128,7 +128,7 @@
(let ((obj (make-hash-table :test #'equal)))
(setf (gethash (car v0) obj) (cdr v0))
obj))
- 'empty-object))))
+ (make-hash-table :test #'equal)))))
(setf json-value
(comp ((_ whitespace)