HomePhorge
Diffusion tesla 762d22a6caf5

Handle mission options for EncodeJson / DecodeJson

Description

Handle mission options for EncodeJson / DecodeJson

The contract for middleware plugs seems to be that they either get zero or
more options in a list, or :nil. The EncodeJson and DecodeJson
implementations, however, were expecting either a list or no opts argument
at all.

Set opts to an empty list instead, if it's falsy (:false or :nil), just like
the combined JSON middleware does.

Details

Provenance
Johan WärlanderAuthored on Oct 12 2016, 1:41 AM
Parents
R28:4bc1905d319b: Merge pull request #29 from clekstro/master
Branches
Unknown
Tags
Unknown

Event Timeline