The table definition for this example includes two JSON columns, jsn1 and jsn2. The jsn1 column is non-LOB and jsn2 in an LOB column.
CREATE TABLE jsonTable (id INTEGER, jsn1 JSON(1000) CHARACTER SET LATIN, jsn2 JSON(1M) INLINE LENGTH 30000 CHARACTER SET LATIN);
The join index includes the id column and the jsn1 column.
CREATE JOIN INDEX jsonJI AS SELECT id, jsn1 FROM jsonTable;