Create JSON ARRAY in KSQLDB confluent cloud

Hi, I have JSON data in one of the topic. I want to apply a tumbling window and group by primary key, all qualified JSON records append into an Array . Is it possible with KSQLDB.

If yes, please guide.

Thanks.