# How do I add an Object or List of Objects as the Default value to an array?

**URL:** <https://community.weweb.io/t/how-do-i-add-an-object-or-list-of-objects-as-the-default-value-to-an-array/1232>\
**Category:** Ask us anything\
**Created:** [October 3, 2022, 10:11pm UTC](https://community.weweb.io/t/how-do-i-add-an-object-or-list-of-objects-as-the-default-value-to-an-array/1232 "2022-10-03T22:11:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![franciscolora0524](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/franciscolora0524/32/1249_2.png) [@franciscolora0524](https://community.weweb.io/u/franciscolora0524)\
**Post date:** [October 3, 2022, 10:11pm UTC](https://community.weweb.io/t/how-do-i-add-an-object-or-list-of-objects-as-the-default-value-to-an-array/1232/1 "2022-10-03T22:11:26Z")

</div>

How do I add an Object or List of Objects as the Default value to an array? Trying to do this to work with a workflow… I tried to copy and paste, but it doesn’t work.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [October 3, 2022, 10:32pm UTC](https://community.weweb.io/t/how-do-i-add-an-object-or-list-of-objects-as-the-default-value-to-an-array/1232/2 "2022-10-03T22:32:26Z")

</div>

You need to add double quotation marks for the key. For example, [{“key1”:“value1”},{“key2”:“value2”}]

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [October 4, 2022, 8:22am UTC](https://community.weweb.io/t/how-do-i-add-an-object-or-list-of-objects-as-the-default-value-to-an-array/1232/3 "2022-10-04T08:22:18Z")

</div>

Your initial value need to be json valid =\> all key and string surrounded by `"`
