Don't return NaN numbers (dirty hack), because they are not valid JSON.