# Nested JSON Object REST API Support

**URL:** https://community.cratedb.com/t/nested-json-object-rest-api-support/128
**Category:** CrateDB
**Created:** [January 21, 2019, 9:30pm UTC](https://community.cratedb.com/t/nested-json-object-rest-api-support/128 "2019-01-21T21:30:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![IM\_DB](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@IM\_DB](https://community.cratedb.com/u/IM_DB)
#### Post date: [January 21, 2019, 9:30pm UTC](https://community.cratedb.com/t/nested-json-object-rest-api-support/128/1 "2019-01-21T21:30:44Z")

</div>

I know it wasn’t supported before, has this changed?

Can I do an update to a record with Array of Objects using REST post?

---

<div class="post-metadata">

### Author: ![roman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/roman/32/36_2.png) [@roman](https://community.cratedb.com/u/roman)
#### Post date: [January 22, 2019, 3:04pm UTC](https://community.cratedb.com/t/nested-json-object-rest-api-support/128/2 "2019-01-22T15:04:57Z")

</div>

Hi @IM_DB,

Thanks for your question? Did you try sth like this:

```
curl 'http://localhost:4200/_sql' --data '{"stmt":"Insert into a (a) values ([{},{}])"}'

```

Please let me know if that helps!  
Best Roman

---

<div class="post-metadata">

### Author: ![IM\_DB](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@IM\_DB](https://community.cratedb.com/u/IM_DB)
#### Post date: [January 22, 2019, 7:13pm UTC](https://community.cratedb.com/t/nested-json-object-rest-api-support/128/3 "2019-01-22T19:13:26Z")

</div>

Yes it does

{“stmt”:“Insert into leads (lead\_id, test) values (?,?)”,  
“args” : [“abcdddd”, [{“a”:1},{“a”:2}]]  
}

Works like a charm. Thank you
