jsonify NAN as null