Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(2.8) Consider addition of JsonGenerator.writeEmbeddedObject(Object) #243

Closed
cowtowncoder opened this issue Jan 5, 2016 · 0 comments · Fixed by #253
Closed

(2.8) Consider addition of JsonGenerator.writeEmbeddedObject(Object) #243

cowtowncoder opened this issue Jan 5, 2016 · 0 comments · Fixed by #253

Comments

@cowtowncoder
Copy link
Member

(note: follow-up from FasterXML/jackson-databind#1068)

While VALUE_EMBEDDED_OBJECT is mostly used internally for piping through things like native binary content (byte[]), it is also necessary in some cases to support native datatypes of non-JSON formats, and especially when buffering is required. Although not all backends will support such writes (in fact, most standard ones would throw an exception), there are cases where calling code knows that this is safe usage; and there is the specific case of buffering (TokenBuffer) where we can support opaque passing of such objects.

So, it may make sense to add such an optional method to make it easier to support data formats with richer set of primitives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant