Trying to serialize NaN, negative infinity and positive infinity does no longer work because they are not part of JSON.
Merge pull request #24 from s-k/master

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