You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some more flexibility, it would be neat to have another method encode whith the eql-specifier cl:null. This is also used in some other json parsers.
Yeah, well, I'm not totally against that idea -- but it might interfere with other users of the library in the same image!
Sadly there's no METHODLET for local methods - the nearest I've come to that is via an additional context parameter that could be hidden by having an encode function that just does (funcall #'encode-via-context *context* object stream) ; then, by locally binding the *context* variable, arbitrary (local!) behaviour can be implemented.
This would be an incompatible change, though (because encode would be a plain function and encode-via-context the generic function) -- and I'm unsure about the runtime performance impact.
Perhaps a yason2 package could do that and just re-use most stuff?
For some more flexibility, it would be neat to have another method
encode
whith the eql-specifiercl:null
. This is also used in some other json parsers.If you like the idea, I will submit the PR.
The text was updated successfully, but these errors were encountered: