cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Help Needed! Best Snap/Technique To Process Incoming Raw CSV Data

andre_mangatal
New Contributor

Good day Snaplogic Community,

I am querying a Rest API which returns a text string which represent a delimited list with commas(,) but the list doesnโ€™t have the header/column names but I know what the data represents.

What is the best method and snaps to use to convert this incoming string delimited by commas and convert it to JSON

Thanks so much!

Best regards
Andre

2 REPLIES 2

tk42
New Contributor III

Assuming that you have a response from the api that has a field with the value as a CSV string, you can map that field to $[โ€˜contentโ€™] in a Mapper, then use a Document to Binary Snap to convert to โ€œbinaryโ€ and then use a CSV Parser to create the JSON docs (SL documents).

hope this helps.

TK

Hi thanks a lot TKโ€ฆ i tried and it worked โ€ฆ much appreciated