Fixed issue where json parsing would fail on NaN