#585 - Refactor of ScalarType jsonWrite() method such that it only takes JsonGenerator - part 1, remove field name

This commit is contained in:
Robin Bygrave committed 2016-03-03 19:51:07 +13:00
1 parent 5b10d06348
commit fc96685ed0
43 files changed
+105 -111

No files matched your search

@@ -1243,7 +1243,8 @@ public class BeanProperty implements ElPropertyValue, Property {
writeJson.writeNullField(name);
} else {
if (scalarType != null) {
scalarType.jsonWrite(writeJson, name, value);
writeJson.writeFieldName(name);
scalarType.jsonWrite(writeJson, value);
} else {
writeJson.writeValueUsingObjectMapper(name, value);
}