jbuehl/solaredge

Make sure NaN is never outputed, it is not valid JSON

Opened this issue · 0 comments

Having the 'meters' accidentally in my results, I noticed some values where returned as NaN (not the string NaN, which would have been okay). NaN however is not valid json (on purpose), it is supposed to be set as 0/0 for example. So in favor of returning valid JSON, ensure output cannot ever be NaN.