Merge branch '2.7.x'

pull/30332/head
Andy Wilkinson 3 years ago
commit 17b5611ace

@ -33,8 +33,10 @@ class MyJsonComponent {
class Serializer : JsonSerializer<MyObject>() {
@Throws(IOException::class)
override fun serialize(value: MyObject, jgen: JsonGenerator, serializers: SerializerProvider) {
jgen.writeStartObject()
jgen.writeStringField("name", value.name)
jgen.writeNumberField("age", value.age)
jgen.writeEndObject()
}
}

Loading…
Cancel
Save