View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000671 | file | General | public | 2025-06-24 21:28 | 2025-06-25 16:01 |
Reporter | moraleda | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0000671: Single json values are considered valid json text according to the latest specification | ||||
Description | The latest json specification: https://datatracker.ietf.org/doc/html/rfc8259 indicates that all valid json values when appearing by themselves constitute valid json text. See in particular sections 2 and 9. Thus tokens (true, false, null) as well as numbers: (e.g. 3, 3.14, 1e42), and double quoted strings (e.g. "hello") when appearing by themselves as the sole contents of a file, possibly surrounded by whitespace, constitute valid json. This extends the original valid json text definition which included only lists [....] and objects {....}. Thus libmagic should report them as "JSON text data" instead of simply as "ASCII text, with no line terminators" | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2025-06-24 21:28 | moraleda | New Issue |