<div dir="ltr"><div>Hi, </div><div><br></div><div>from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=2020715" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=2020715</a>:</div><div><br></div>"Description of problem:<br><br>The command "file" applied to a JSON file now outputs "JSON data", without<br>including the string "text" in the output. Earlier versions behaved differently -<div>on CentOS 6 file returned just "ASCII text" for JSON file,and this is also </div><div>contrary to the documentation of file (man file), which states:<div><br>     The type printed will usually contain one of the words text (the file<br>     contains only printing characters and a few common control characters and<br>     is probably safe to read on an ASCII terminal), executable (the file con‐<br>     tains the result of compiling a program in a form understandable to some<br>     UNIX kernel or another), or data meaning anything else (data is usually<br>     “binary” or non-printable).  Exceptions are well-known file formats (core<br>     files, tar archives) that are known to contain binary data.  When modify‐<br>     ing magic files or the program itself, make sure to preserve these<br>     keywords.  Users depend on knowing that all the readable files in a di‐<br>     rectory have the word “text” printed.  Don't do as Berkeley did and<br>     change “shell commands text” to “shell script”.<br><br>Apparently file has now done as Berkeley did..."<br><div><br></div></div></div><div>What do you think about changing the "JSON data" to "JSON text data" ?</div><div><a href="https://github.com/file/file/blob/b56b58d499dbe58f2bed28e6b3c297fe7add992e/src/is_json.c#L417">https://github.com/file/file/blob/b56b58d499dbe58f2bed28e6b3c297fe7add992e/src/is_json.c#L417</a></div><div><br></div><div>vincent mihalkovic</div><div><br></div></div>