# Component JSON - autopopulate default

**URL:** <https://forum.inductiveautomation.com/t/component-json-autopopulate-default/45724>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [April 18, 2021, 10:46pm UTC](https://forum.inductiveautomation.com/t/component-json-autopopulate-default/45724 "2021-04-18T22:46:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirsty](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@kirsty](https://forum.inductiveautomation.com/u/kirsty)\
**Post date:** [April 18, 2021, 10:46pm UTC](https://forum.inductiveautomation.com/t/component-json-autopopulate-default/45724/1 "2021-04-18T22:46:25Z")

</div>

Hello,

I am wondering how to write my schema.json so that when I add a new object to an array in the designer, that new object is autopopulated with my “default”? For example: using the Perspective XY Chart, whenever an object is added within the “series” property, the new object has all the required objects/values.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 19, 2021, 4:45pm UTC](https://forum.inductiveautomation.com/t/component-json-autopopulate-default/45724/2 "2021-04-19T16:45:34Z")

</div>

It should be something like:

```json
{
  "properties": {
    "$yourArrayProperty": {
      "items": {
        "default": {
          "someProperty": "someDefaultValue",
          "someOtherProperty": "someOtherDefault"
        }
      }
    }
  }
}

```
