Merge pull request
#2194 from minrk/clean_nan
Clean nan/inf in json_clean.
The floating point values NaN and Infinity are not part of the JSON
specification and causes some parsers to throw errors. Since our
usage is only for things like the display of function defaults, we
can use a basic string representation ('NaN', 'inf', etc) instead.