mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
Miller type-inference accepts float formats which the JSON grammar disallows -- leading zeros like 004.56, leading plus signs, bare leading or trailing decimal points like .56 or 4., etc. -- and the JSON writer passed the original text through verbatim, producing invalid JSON. Leading-zero integers such as 0123456789 were already handled (inferred as strings), and hex/binary/octal ints were already re-rendered as decimal for JSON per #1761; this does the same for floats: when a float string representation is not a valid JSON number, re-render it (e.g. 004.56 -> 4.56). Also documents in reference-main-data-types that CSV double-quoting does not affect type inference, with -S / --infer-none and string() as the ways to keep such values as strings. Addresses #1114 and #1293. Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 0001 | ||
| 0002 | ||
| 0003 | ||
| 0004 | ||
| 0005 | ||
| 0011 | ||
| 0020 | ||
| 0021 | ||
| 0024 | ||
| 0025 | ||
| 0027 | ||
| 0031 | ||
| 0032 | ||
| 0033 | ||
| 0034 | ||
| 0035 | ||
| 0036 | ||
| 0037 | ||
| 0038 | ||
| 0039 | ||
| 0040 | ||