Allow float and double special cases to be converted to and from json correctly, including positive and negative infinity and NaN.
Allow float and double special cases to be converted to and from json correctly, including positive and negative infinity and NaN.