Glances API

Someone out there using Glances (best with and in docker environment) and able to use the API as Rest Sensors?

The call results in SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data.

Therefore I need to go with or instead, but typically the result is longer than 255 chars and so it does not work with HomeAssistant.

How could I use the glances API and extract some values?