Update JsonSerializer.cs

This will fix serialization of Number, as this is not handled properly as it is now.
Merge pull request #1 from lassebn/patch-1

Update JsonSerializer.cs