Shouldn't these serializer methods serialize the `obj` parameter, instead of creating a new object? This seems pretty important.