Trying to serialize NaN, negative infinity and positive infinity does no longer work because they are not part of JSON.