We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65aee42 commit 0aedfceCopy full SHA for 0aedfce
src/input/parse_json.rs
@@ -146,7 +146,7 @@ impl<'de> Deserialize<'de> for JsonInput {
146
147
if let JsonInput::String(s) = &first_value {
148
// Normalize the string to either an int or float
149
- let normalized = if s.contains('.') {
+ let normalized = if s.contains('.') || s.contains('e') {
150
JsonInput::Float(
151
s.parse()
152
.map_err(|e| V::Error::custom(format!("expected a float: {e}")))?,
0 commit comments