OK, well that’s because you’ve created a Number Channel which expects a number or a String that can be parsed into a number and you are trying to give it a JSON.
The problem isn’t the ', the problem is you either need to change the Channel to a String type Channel or you need to use JSONPATH to extract one of those values from the JSON for the Channel to use.
As a workaround:
Use a REGEX transformation to replace all ’ with ", see RegEx - Transformation Services | openHAB. Then use the transformation concatenation operator to append a JSONPATH transformation.
Unfortunately, since this is almost certainly coming from the Exec binding, the concatenation operator is not supported. To my knowledge, only the MQTT and HTTP bindings support that.
However, the REGEX could be defined on the Channel and a transform Profile could be applied on the Link.
If this is through executeCommandLine, a simple .replace("'", "\"") should be sufficient and then the transform Action can be called with JSONPATH.
var json = transform("JSONPATH", "$.1", executeCommandLine(...).replace("'", "\""))
You’d probably want to start by breaking that up so you can log out intermediate steps.