add support for dates in json serializer
no cast
move date compare lower on checks
Merge pull request #2680 from Blank101/jsondate

Add support for dates in json serializer