jsown
jsown copied to clipboard
`to-json*` prints empty string instead of `{}` for empty object
to-json*
prints an empty string instead of {}
for an empty object:
* (jsown:to-json (jsown:empty-object))
"{}"
* (jsown:to-json* (jsown:empty-object))
""
This is on Void Linux with SBCL 1.3.17 and jsown-20160208-git.tgz from Quicklisp.
Couldn't reproduce it.
CL-USER> (jsown:to-json (jsown:empty-object))
"{}"
Maybe it's already fixed?
I think this must have been fixed along the road. I also don't see it. Thanks for cleaning this up @mateusfccp
Still the case for me on master:
CL-USER> (jsown:to-json (jsown:empty-object))
"{}"
CL-USER> (jsown:to-json* (jsown:empty-object))
""
CL-USER>
Reopening, but not sure when we'll fix it without a PR.
I presumed the context where this is used to be known when the faster writing mechanism is requested. It's still unexpected behavior and I suppose others will hit that too.