Writing to JSON files

Started by jhimmy dingo, December 15, 2023, 10:22:17 AM

Previous topic - Next topic

jhimmy dingo

Trying to write to a JSON file I got the response, "Error: Writing of JSON files is not yet supported"

Just putting in a request to be able to write to JSON files.

In the meantime, does anyone know of a way similar to ExifTool for writing to JSON files?

Thanks

StarGeek

Editing a JSON file is unlikely to be supported as there isn't a set of standard tag names.  It would need to write free form TAG/VALUE pairs, which would probably require extensive re-writing of exiftool.

I've used jq to deal with JSON files, but never used it enough to get the hang of it.

Another program in my notes that I haven't tried is Miller, which says it "is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON"
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

jhimmy dingo

Thanks for the good info--I have a lot to learn!