serde_json allows for deserializing a unit variant like:
enum SomeEnum {
SomeVariant
}
from either a string like "SomeVariant" or {"SomeVariant: null}. Previously serde_json5 would allow for any value in the second case. That data would then be thrown away. This changes serde_json5 to match serde_json and only allow null.
Note that this is a breaking change, and so it bumps the version.
serde_json
allows for deserializing a unit variant like:from either a string like
"SomeVariant"
or{"SomeVariant: null}
. Previouslyserde_json5
would allow for any value in the second case. That data would then be thrown away. This changesserde_json5
to matchserde_json
and only allownull
.Note that this is a breaking change, and so it bumps the version.