# Add an array to a dictionary

**URL:** <https://forum.robotframework.org/t/add-an-array-to-a-dictionary/7103>\
**Category:** Robot Framework\
**Created:** [2 April 2024 10:04 UTC](https://forum.robotframework.org/t/add-an-array-to-a-dictionary/7103 "2024-04-02T10:04:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marwen87](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/marwen87/32/3660_2.png) [@Marwen87](https://forum.robotframework.org/u/Marwen87)\
**Post date:** [2 April 2024 10:04 UTC](https://forum.robotframework.org/t/add-an-array-to-a-dictionary/7103/1 "2024-04-02T10:04:19Z")

</div>

i have a dictionary from a json response and i need to add an at the begin and at the end of this dictionary.  
this is my json : {  
“modification\_date” : “2024-04-02T09:49:52.359264819”,  
“id” : 34,  
“name” : “newDashboardForTesting”,  
“edit\_mode” : true,  
“dashboard\_translation” : [ {  
“id” : 268,  
“label” : "dashboardEN ",  
“locale” : “EN”,  
“translation\_key” : “TITLE”  
}, {  
“id” : 269,  
“label” : "dashboard de ",  
“locale” : “DE”,  
“translation\_key” : “TITLE”  
} ],  
“dashboard\_order” : 0  
}  
i’m trying to add the so the result:  
[{  
“modification\_date” : “2024-04-02T09:49:52.359264819”,  
“id” : 34,  
“name” : “newDashboardForTesting”,  
“edit\_mode” : true,  
“dashboard\_translation” : [ {  
“id” : 268,  
“label” : "dashboardEN ",  
“locale” : “EN”,  
“translation\_key” : “TITLE”  
}, {  
“id” : 269,  
“label” : "dashboard de ",  
“locale” : “DE”,  
“translation\_key” : “TITLE”  
} ],  
“dashboard\_order” : 0  
} ]  
But i dont fint how ?

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [2 April 2024 10:23 UTC](https://forum.robotframework.org/t/add-an-array-to-a-dictionary/7103/2 "2024-04-02T10:23:38Z")

</div>

Either `Create List`

- [https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Create%20List](https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Create%20List)

or `Append To List` keywords:

- [https://robotframework.org/robotframework/latest/libraries/Collections.html#Append%20To%20List](https://robotframework.org/robotframework/latest/libraries/Collections.html#Append%20To%20List)

In your case, probably later is useful since you might end up adding more than dict into that list.
