Jdbc Driver — Postgres

JSON/JSONB:

A type 4 JDBC driver that allows Java applications to connect to a PostgreSQL database using standard JDBC APIs. It translates JDBC calls into PostgreSQL's wire protocol (libpq). postgres jdbc driver

Load driver (automatic since JDBC 4+):

// Store JSON PGobject jsonObj = new PGobject(); jsonObj.setType("json"); jsonObj.setValue("\"key\": \"value\""); pstmt.setObject(1, jsonObj); // Read JSON String jsonStr = rs.getString("data"); JSON/JSONB: A type 4 JDBC driver that allows