API function "isHardwareConnected" response, is formally correct? Bug?

Hi All,

the API function isHardwareConnected response header is “content-type: application/json;charset=utf-8” and therefore assumes a response in JSON format but the responses returned by this function that is “true” or “false” are not valid json contents, am I wrong?

Thanks
Alex

1 Like

They seem to be valid JSON value responses…

http://json.org/

Interesting.,…
strange that some validators do not appreciate it, like this https://jsonformatter.curiousconcept.com/

Alex

Yes. This is correct json value according to the specification. Not all validators implement specification.