35be9f14e4
The function always returned the PREVIEW version as the latest compatible version. This was caused by incorrectly selecting the version from the json object, which resulted in the version to be wrapped in '"'.