Package com.oracle.json.stream

Provides a streaming API to parse and generate JSON.

See: Description

Package com.oracle.json.stream Description

Provides a streaming API to parse and generate JSON.

The streaming API consists of the interfaces JsonParser and JsonGenerator. The interface JsonParser contains methods to parse JSON in a streaming way. The interface JsonGenerator contains methods to write JSON to an output source in a streaming way.

JsonParser provides forward, read-only access to JSON data using the pull parsing programming model. In this model the application code controls the thread and calls methods in the parser interface to move the parser forward or to obtain JSON data from the current state of the parser.

JsonGenerator provides methods to write JSON to an output source. The generator writes name/value pairs in JSON objects and values in JSON arrays.

The streaming API is a low-level API designed to process large amounts of JSON data efficiently. Other JSON frameworks (such as JSON binding) can be implemented using this API.

list of classes/methods that were removed from JSR-353: JsonGenerator.write(String name, BigInteger value); JsonGenerator.write(String name, BigDecimal value); JsonGenerator.write(BigDecimal value); JsonGenerator.write(BigInteger value); JsonParser.getBigDecimal();

list of classes/methods that were modified from JSR-353: JsonGeneratorFactory.createGenerator(OutputStream out, String charset) throws UnsupportedEncodingException; JsonParserFactory.createParser(InputStream in, String charset) throws UnsupportedEncodingException ;

Since:
JSON Processing 1.0

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.