View Issue Details

IDProjectCategoryView StatusLast Update
0000671fileGeneralpublic2025-06-25 16:01
Reportermoraleda Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0000671: Single json values are considered valid json text according to the latest specification
DescriptionThe 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"
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-06-24 21:28 moraleda New Issue