invalid json output with -verbose
Posted: 2017-10-29T09:15:53-07:00
Outputting to json using the commandline with the -verbose option creates invalid json.
Reason is that backslashes has to be escaped with (double backslash), so it breaks at the filepaths
Incorrect:
Correct :
https://jsonlint.com/
Code: Select all
convert -verbose mypic.jpg json:-
Incorrect:
Code: Select all
{ name: "c:\some dir\myfile.mp4" }
Code: Select all
{name: "c:\\some dir\\myfile.mp4"}