Skip to content

Commit

Permalink
Merge branch '2.6.x' into 2.7.x
Browse files Browse the repository at this point in the history
Closes gh-30331
  • Loading branch information
snicoll committed Mar 19, 2022
2 parents fc79c38 + bce247e commit d8bb2ec
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -36,8 +36,10 @@ public static class Serializer extends JsonSerializer<MyObject> {

@Override
public void serialize(MyObject value, JsonGenerator jgen, SerializerProvider serializers) throws IOException {
jgen.writeStartObject();
jgen.writeStringField("name", value.getName());
jgen.writeNumberField("age", value.getAge());
jgen.writeEndObject();
}

}
Expand Down

0 comments on commit d8bb2ec

Please sign in to comment.