manohar
5 years agoContributor
Double array to single array
Hi there,
I have data coming as below in double array. how can I make it to single array?
any help is greatly appreciated.
Thanks
Manohar
[[
{
type:“AttachmentText”
intent:“Supplier”
text:“This is sample text.”
}
]]
to
[
{
type:“AttachmentText”
intent:“Supplier”
text:“This is sample text.”
}
]
Just map
$[0]
to$
.Also, whenever you paste JSON into this forum, please always use the
</>
button so it’s enclosed as a code block.Otherwise the forum will change all the double quotes to be like English text and then the JSON is unusable without manual editing.