<How to transform the Array of object to an object...
# stackoverflow
u
How to transform the Array of object to an object in Kotlin I have a list of object Ftemp(Wert_1_id='I130320', Wert_2_id='I130278', Wert_3_id='I130115') Ftemp(Wert_1_id='I130320', Wert_2_id='I130278', Wert_3_id='I130108') Ftemp(Wert_1_id='I130320', Wert_2_id='I130278', Wert_3_id='I130110') Ftemp(Wert_1_id='I130320', Wert_2_id='I130106', Wert_3_id='I130271') and want to transform the list to an object. Like "cat": [ { "id_": "I130320", "children": [ { "id_": "I130278", "children": [ {...