JSON validation error when reading tags
Created by: agger-magenta
Sometimes, the output from git annex metadata --json
produces JSON that fails to parse.
Like this:
{"command":"metadata","file":"dpadua/imagem/15/02/08/ocupacao-do-mercado-sul-de-taguatinga-bdab9.jpg",,"note":"","success":true}
The problem is the the empty element denoted by two commas in a row. I think we mainly see this problem in cases where there isn't actually any metadata, thus no tags either.
Maybe we should detect that empty element. Alternatively, we can parse the standard, non-JSON output instead.