When serialising Infinity to JSON using S.float, it becomes null. However, this means that when parsing the serialised JSON, sury throws the error Expected number, received null.
I think it'd make sense for S.float to throw an error when given Infinity, just like it does for NaN.