sending NaN in json

json.dumps has an allow_nan parameter, which defaults to True.

NaN, Infinity and -Infinity are not part of JSON, but they are standard in Javascript, so they’re commonly used extensions. If the recipient can’t handle them, set allow_nan=False. But then you’ll get ValueError when you try to serialise NaN.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)