diff --git a/stone/backends/obj_c_types.py b/stone/backends/obj_c_types.py index 8c60a409..df07b445 100644 --- a/stone/backends/obj_c_types.py +++ b/stone/backends/obj_c_types.py @@ -1123,7 +1123,7 @@ def emit_serializer(): if is_user_defined_type(data_type): if is_struct_type(data_type) and \ not data_type.has_enumerated_subtypes(): - self.emit('jsonDict = [{} mutableCopy];'. + self.emit('[jsonDict addEntriesFromDictionary:{}];'. format(serialize_call)) else: self.emit(