Is the size limit of a json field before or after compression in Postgres?
The limit of 1GB on varlena data types like json is before compression.
Note that you will need a lot of RAM to read and write such values. It is usually a problem and bad design to store such large values in a database.