Added YAML and JSON serializers.