Custom vault loot is missing a component

Hey, I created a datapack where I have added custom loot tables for vaults and custom keys for them. One of the keys is called "Master Key" which is able to open vaults and ominous vaults by modifying the config.key_item when holding the key There are vaults that drop a Master Key and when I tried using them on other vaults they didnt work. I checked the components of the dropped key with /data get entity @s SelectedItem.components and it says the following: {"minecraft:lore":['{"color":"gray","text":"This key can be used once to open a Vault of any type"}'], "minecraft:custom_name":'{"color":"gold","italic":false,"text":"Master Key"}',"minecraft:rarity":"epic","minecraft:enchantment_glint_override":"1b,"minecraft:custom_model_data":31060004} now this seems alright but when I give myself the same key with this command: give @s trial_key[custom_name='["",{"text":"Master Key","italic":false,"color":"gold"}]',lore=['["",{"text":"This key can be used once to open a Vault of any type","color":"gray"}]'],rarity=epic,enchantment_glint_override=true,custom_model_data=31060004] then it has the same components but there is an "extra": in front of the lore and custom_name component: {"minecraft:lore":['{"extra":[{"color":"gray","text":"This key can be used once to open a Vault of any type"}],"text":""}'],"minecraft:custom_name":'{"extra":[{"color":"gold","italic":false,"text":"Master Key"}],"text:""}',"minecraft:rarity":epic","minecraft:enchantment_glint_override":1b,"minecraft:custom_model_data":31060004}
Continue to help post