This is with imagemagick-126.96.36.199-1.mga6
When using the JSON output of imagemagick, if the source has a non-default geometry (for example with a convert -crop), the JSON document will contain a originGeometry information which is not properly formatted.
For example, when running
convert -crop 500x100+0+100 myimage.jpg JSON:-
the generated JSON output will contain the following line:
which is missing a final coma (as it is not at the end of the document) and should be quoted (because it is not a valid number).
This problem has already been fixed upstream:
The first is already part of the latest release of branch v6 (6.9.9-31), the second is more recent and was only been backported to v6 two weeks ago
Assigning to the registered maintainer.
An update to version 6.9.9-36 has been pushed to Mageia 6 updates_testing awaiting validation from the QA team.
If you want to test this yourself, you can enable Updates Testing and install only ImageMagick.
I tested it on x86_64, and can confirm that the JSON output (in my use case) is now valid.
This update has been pushed.