Describe the feature
PR #1682 added the support for Oracle JSON native data type.
This data type uses the OSON binary format to encode JSON data.
The Oracle JDBC driver provides the ability for client-side encoding and decoding of the OSON format.
Because this binary format compress JSON data (deduplicating field names, serializing dates with less bytes, etc.) the
network traffic is reduced between the client and the database. Also, offloading the envoding and decoding on the client reduces the resources used by the database server.
Regarding decoding, database can send the OSON encoded JSON data instead of the UTF-8 text. This allows for lazy deserialization of the JSON data/fields when only required.
To ease the integration of this capability, the Oracle JDBC extension provides the support of Jackson API. You can use ObjectMapper to write and read OSON binary format.
You can find an example here: https://github.com/oracle/ojdbc-extensions/blob/main/ojdbc-provider-jackson-oson/src/test/java/oracle/jdbc/provider/oson/test/EncondingTest.java
Contribution
No response
Describe the feature
PR #1682 added the support for Oracle JSON native data type.
This data type uses the OSON binary format to encode JSON data.
The Oracle JDBC driver provides the ability for client-side encoding and decoding of the OSON format.
Because this binary format compress JSON data (deduplicating field names, serializing dates with less bytes, etc.) the
network traffic is reduced between the client and the database. Also, offloading the envoding and decoding on the client reduces the resources used by the database server.
Regarding decoding, database can send the OSON encoded JSON data instead of the UTF-8 text. This allows for lazy deserialization of the JSON data/fields when only required.
To ease the integration of this capability, the Oracle JDBC extension provides the support of Jackson API. You can use ObjectMapper to write and read OSON binary format.
You can find an example here: https://github.com/oracle/ojdbc-extensions/blob/main/ojdbc-provider-jackson-oson/src/test/java/oracle/jdbc/provider/oson/test/EncondingTest.java
Contribution
No response