jackc / pgtype

MIT License
318 stars 112 forks source link

Add support for json[] via JSONArray #179

Closed das7pad closed 2 years ago

das7pad commented 2 years ago

This PR is adding support for handling json[] via a generated JSONArray type.

The OID for json[] is 199, per https://github.com/postgres/postgres/blob/be39d88934331c47c43d8c51500305e928f06240/src/include/catalog/pg_type.dat#L138

I've copied the jsonb[] tests and adjusted the references accordingly.

das7pad commented 2 years ago

Thanks!