Skip to content

Encode symbol cl:null as null #83

@kilianmh

Description

@kilianmh

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.

(defmethod encode ((object (eql 'cl:null)) &optional (stream *json-output*))
  (write-string "null" stream)
  object)

If you like the idea, I will submit the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions