Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
YPMAL
Contributor III
Contributor III

need to convert delimited file to key value pair

I have input file ..

eg.

-------------------------------------------------------------      

name,number,country                                                        

yogesh,420420,India                                                         This is my csv file with headers and data

-------------------------------------------------------------

 

and  i want output file like

--------------------------------------------------------------

"name":yogesh,"number":420420,"country":India 

--------------------------------------------------------------

Labels (3)
13 Replies
YPMAL
Contributor III
Contributor III
Author

thanks a lot....Its working now...0683p000009MApQ.png

vapukov
Master II
Master II

Welcome! 🙂

YPMAL
Contributor III
Contributor III
Author

 

System.out.println([(List<String>)globalMap.get("v header")].get[1]);

 

 

trying to get value from the List but getting this error..

Error in the component's properties0683p000009M9p6.pngyntax error on token "(", Expression expected after this token

Anonymous
Not applicable

I've not looked at your other code, but would assume you mean this.....

 

System.out.println(((List<String>)globalMap.get("v header")).get(1));

The square brackets were incorrect.