Fixed JSON serializer raises exception