The script currently crashes when a result is - (not counted or device does not exist). This fix replaces these values with NaN for JSON. Although NaN is not officially allowed by the JSON standard, the Python JSON module handles them properly: http://docs.python.org/library/json.html#basic-usage
The script currently crashes when a result is
-
(not counted or device does not exist). This fix replaces these values withNaN
for JSON. AlthoughNaN
is not officially allowed by the JSON standard, the Python JSON module handles them properly: http://docs.python.org/library/json.html#basic-usage