Add support for new JSON format
With https://gitlab.typo3.org/t3o/ter/-/merge_requests/600 the format of the dependencies column in
tx_terfe2_domain_model_version was changed from serialized to JSON. In https://gitlab.typo3.org/t3o/ter/-/merge_requests/601 a CLI command was introduced which generates "compatible TYPO3 versions" data from these column. This CLI command however only evaluates the data in the old format. Therefore a fallback must be implemented to support both formats, so it doesn't matter which command is executed first.