We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I noticed that when running exiftool on json files with -j -struct, the keys will not be escaped in the output which can create invalid JSON output.
-j -struct
Example:
test.json
{ "transform": { "\\.\"": "\\.\"" } }
Exiftool produces:
> .\exiftool.exe test.json -j -struct [{ "SourceFile": "test.json", "ExifToolVersion": 11.80, "FileName": "test.json", "Directory": ".", "FileSize": "46 bytes", "FileModifyDate": "2019:12:21 22:15:20+01:00", "FileAccessDate": "2019:12:21 22:15:20+01:00", "FileCreateDate": "2019:12:21 21:56:09+01:00", "FilePermissions": "rw-rw-rw-", "FileType": "JSON", "FileTypeExtension": "json", "MIMEType": "application/json", "Transform": { "\."": "\\.\"" } }]
As you can see "\."" is invalid JSON as both \ and " are not escaped.
"\.""
\
"
The text was updated successfully, but these errors were encountered:
Thanks for this report. I'll fix this in the next release.
Sorry, something went wrong.
This should be fixed in the most recent release: 4ab0216
No branches or pull requests
I noticed that when running exiftool on json files with
-j -struct
, the keys will not be escaped in the output which can create invalid JSON output.Example:
test.json
Exiftool produces:
As you can see
"\.""
is invalid JSON as both\
and"
are not escaped.The text was updated successfully, but these errors were encountered: