It turns out that inf is not a valid JSON value