json serializer should now be set as an instance instead of a type