i am dealing with a meta tag that has the following structure
metaInfo () {
return {
title: 'my title',
meta: [
{
name: 'description',
content: 'my description'
},
{
property: 'og:title',
content: 'my title2'
},
{
property: 'og:site-name',
content: 'my site name'
},
{
property: 'og:type',
content: 'website'
},
{
name: 'robots',
content: 'index,follow'
}
]
}
},
i am looking to add my api response to this meta tag, but i'm unsure how to format the data correctly
this is the output of my API response
data: [{meta_tags_id: 3, meta_tags_properties: "my property", meta_tags_content: "my content"}]
0: {meta_tags_id: 3, meta_tags_properties: "my property", meta_tags_content: "my content"}
meta_tags_content: "my content"
meta_tags_id: 3
meta_tags_properties: "my property"
error: 0
message: "successfully get all meta tags"
this is what i expect as a result: { property: my property, content: my content } and how can i merge my json response with my metaInfo?