Exporting Image annotations in Coco dataset format ?

Have you seen this answer?

It might be a nice example to work from. Prodigy currently does not offer an automated way to get data into the COCO format, but there might be some community examples out there that do.