Add writeStartObject(Object pojo)
to streamline assignment of current value
#257
Milestone
writeStartObject(Object pojo)
to streamline assignment of current value
#257
With addition of
setCurrentValue()
there's typically need to make 2 class; one to set current value, another to writeSTART_OBJECT
. Further there may be checks that some codecs (like, say, XML one) might want to make related to combination of underlying format element and Java Object it is to represent; these are much easier to make if there is just one call and not a sequence of two.A related question is whether to do the same with
writeStartArray()
, perhaps related to handling of compact arrays of primitives (like forint[]
).The text was updated successfully, but these errors were encountered: