You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2019/04/29 09:31:27 UTC

Update in toString

Hi guys,

I updated toString of jsonobject/jsonarray to be based on jsongenerator to
avoid surprises and ensure we reuse all the goodness we can put in the
dedicated API (using StringWriter).

It has one big impact: BufferProvider of char[] must be almost everywhere
and our jsonb impl is no more portable (regarding jsonp). We can duplicate
this API with a nice default when running johnzon-jsonp under the hood but
wonder if we still care about being portable or if it really never happens
and we can drop that feature.

wdyt?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>