Hi @Ali_Zaidi,
I believe this (or similar) has already been answered, with an example flow template you can use - JSON to Variables to Loop to Google Sheets - #2 by ashrafsam. It is pretty much what you have asked for help with.
Kind regards,
GunnerJnr