users@jsonb-spec.java.net

[jsonb-spec users] [jsr367-experts] Appendable/Readable vs Writer/Reader

From: <dmitry.kornilov_at_oracle.com>
Date: Wed, 13 Jan 2016 14:07:12 +0000 (UTC)

Hi,

During our work on RI we realised that using Appendable / Readable in
Jsonb.toJson/fromJson methods is not convenient.

We are using JSONP as a parser. JSONP uses java.io.Writer and
java.io.Reader instead of Appendable and Readable. It means that we
need to wrap Appendable/Readable parameters to Writer/Reader before
passing it to JSONP. Such a wrap appears redundant to me. It’s also not
a best solution from the performance point of view.

I am suggesting replacing Appendable/Readable in JSONB to Writer and
Reader as it is in JSONP unless there is a strong reason to leave it as
it is now.

Thanks,
Dmitry