diff --git a/kotlin/reflect/src/main/java/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapter.kt b/kotlin/reflect/src/main/java/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapter.kt index d32ae5c..8e4d16b 100644 --- a/kotlin/reflect/src/main/java/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapter.kt +++ b/kotlin/reflect/src/main/java/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapter.kt @@ -229,7 +229,7 @@ class KotlinJsonAdapterFactory : JsonAdapter.Factory { val name = jsonAnnotation?.name ?: property.name val resolvedPropertyType = resolve(type, rawType, property.returnType.javaType) val adapter = moshi.adapter( - resolvedPropertyType, Util.jsonAnnotations(allAnnotations.toTypedArray())) + resolvedPropertyType, Util.jsonAnnotations(allAnnotations.toTypedArray()), property.name) bindingsByName[property.name] = KotlinJsonAdapter.Binding(name, adapter, property as KProperty1, parameter)