Skip to content

Commit

Permalink
Fix issue FasterXML#84.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Gélinas committed Dec 10, 2013
1 parent 37828fc commit b195559
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ protected void serializeFields(Object bean, JsonGenerator jgen0, SerializerProvi
if (prop != null) { // can have nulls in filtered list
prop.serializeAsField(bean, xgen, provider);
}
// Reset to avoid next value being written as unwrapped,
// for example when property is suppressed
if (i == textIndex) {
xgen.setNextIsUnwrapped(false);
}
}
if (_anyGetterWriter != null) {
_anyGetterWriter.getAndSerialize(bean, xgen, provider);
Expand Down

0 comments on commit b195559

Please sign in to comment.