Update JsonSerializer.cs

This will fix serialization of Number, as this is not handled properly as it is now.