json.dumps() will produce nonstandard JSON if there are NaNs in the data.
Javascript's JSON.parse() will refuse to load this kind of "JSON".
At least the is_changed key can be NaN or something else if a node returns NaNs
from its IS_CHANGED function.
Fortunately, json.loads() allows parsing NaN's into Nones, so round-tripping
once is a pretty easy fix.