cancel
Showing results for 
Search instead for 
Did you mean: 

Double array to single array

manohar
Contributor

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.”
}
]

1 ACCEPTED SOLUTION

ptaylor
Employee
Employee

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.

View solution in original post

1 REPLY 1

ptaylor
Employee
Employee

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.