Commit 7fbc0dff authored by Steven Allen's avatar Steven Allen

fix: remove undefined support from unmarshal

It's not a part of the JSON spec.
parent 9f86c3bc
......@@ -84,7 +84,7 @@ func (f Flag) MarshalJSON() ([]byte, error) {
func (f *Flag) UnmarshalJSON(input []byte) error {
switch string(input) {
case "null", "undefined":
case "null":
*f = Default
case "false":
*f = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment