# getting-started

Alex K

12/07/2021, 8:27 PM
If I have a string array: ```<string-array name="listOfNorthDishesArray"> <item>{"name":"Khai Paen","details":"River weed is turned into thick, simmered, spicy sauce or dried in thin sheets which have been sprinkled with tamarind and ginger juice and other aromatics such as sesame seeds, tomato and garlic. The dry sheets are cut into small squares and flash shallow fried for a tasty drinks snack."} </item> <item>{"name":"Jeow Bong","details":"Jeow bong is eaten with fried or grilled river algae sheets kai paen or kai phene, grilled dried beef gee sin lod or steamed vegetables. It is also served as an accompaniment to sticky rice or added to stir fries."} </item> </string-array> how can I return just "name" here
😶 4


12/07/2021, 9:54 PM
Not kotlin buuuuut, you'd have to manipulate the JSON/parse it first. Have a look at Kotlinx serialisation library or GSON or Jackson for JSON parsing
👍 1