Towards a JSON API for the JDK

Raffaello Giulietti raffaello.giulietti at oracle.com
Fri May 16 17:26:04 UTC 2025


Since the parser is specified to be lazy, the backing store needs to be 
immutable.


On 2025-05-16 18:52, Markus KARG wrote:
> When instead allowing the 
> general interface CharSequence, *any* kind of text source can be parsed, 
> for example, an off-heap located direct CharBuffer, without the need to 
> explicitly copy its content into a temporary in-memory String 
> representation, upfront to parsing. More flexible, more speed, less 
> memory, less GC. :-)
> 


More information about the core-libs-dev mailing list