code: private Object getJSONValue(String val) throws DatabaseEngineException {
          try {
              PGobject dataObject = new PGobject();
              dataObject.setType("jsonb");
              dataObject.setValue(val);
              return dataObject;
          } catch (final SQLException ex) {
              throw new DatabaseEngineException("Error while mapping variables to database, value = " + val, ex);
          }
      }
docs: Converts a String value into a PG JSON value ready to be assigned to bind variables in Prepared Statements.
  
  @param val   The String representation of the JSON value.
  @return      The correspondent JSON value
  @throws DatabaseEngineException if there is an error creating the value. It should never be thrown.
  @since 2.1.5