View Issue Details

IDProjectCategoryView StatusLast Update
0000671fileGeneralpublic2025-07-23 19:01
Reportermoraleda Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
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

christos

2025-07-23 19:01

manager   ~0004278

perhaps, I am not sure how useful that behavior is.

Issue History

Date Modified Username Field Change
2025-06-24 21:28 moraleda New Issue
2025-07-23 19:01 christos Assigned To => christos
2025-07-23 19:01 christos Status new => assigned
2025-07-23 19:01 christos Note Added: 0004278