BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

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

#1

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

#2

They seem to be valid JSON value responses…

http://json.org/

0 Likes

#3

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

Alex

0 Likes

#4

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

0 Likes