NBT command to JSON (entity)

So i just need to transfer an nbt to a json file, i searched online for anything but i cent seem to figure it out. the nbt is: {ActiveEffects:[{Id:24,Duration:10000,Amplifier:255}],CustomName:'{"text":"Gold Pig","color":"gold"}'}. mc version 1.20.1. If this problem is not fit for this dc server im sorry i just thought it was worth to ask 🙂
Continue to help post