Glances API

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

The call http://192.168.1.12:61208/api/3/mem/used results in SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data.

Therefore I need to go with http://192.168.1.12:61208/api/3/mem or http://192.168.1.12:61208/api/3/docker 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?