3 ms·
Ugh, please name and shame the [de]serializer that was silently converting a string to a boolean.
by _-___________-_ 6y ago
Ugh, please name and shame the [de]serializer that was silently converting a string to a boolean.
- throwaway189262 6y agoThe problem we ran into is that they can all be configured to do whatever. There's no consistently or standard
- _-___________-_ 6y agowell, there's the JSON standard, which does not define "false" and false as equivalent.
- bonzini 6y agoNot sure about JSON, but YAML has the Norway problem: https://hitchdev.com/strictyaml/why/implicit-typing-removed/ https://hitchdev.com/strictyaml/why/implicit-typing-removed/
- formerly_proven 6y agoJSON does not, because JSON is explicitly typed: - "... - string - 14, 14.5 - number (problematic) - false, true - bool - {... - object - [... - array - null No cute abbreviations.