# In jsonb-Objekt mit jsonb\_set Array setzen

**URL:** https://www.pg-forum.de/t/in-jsonb-objekt-mit-jsonb-set-array-setzen/567
**Category:** PL/pgSQL
**Created:** [25. Juni 2019 um 12:57 UTC](https://www.pg-forum.de/t/in-jsonb-objekt-mit-jsonb-set-array-setzen/567 "2019-06-25T12:57:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![joeey](https://www.pg-forum.de/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@joeey](https://www.pg-forum.de/u/joeey)
#### Post date: [25. Juni 2019 um 13:37 UTC](https://www.pg-forum.de/t/in-jsonb-objekt-mit-jsonb-set-array-setzen/567/2 "2019-06-25T13:37:21Z")

</div>

Dies funktioniert ebbenfalls  
result = jsonb\_set(result::jsonb, ‘{names}’, to\_jsonb(ARRAY[‘a’, ‘b’, ‘c’]));

---

_[View the full topic](https://www.pg-forum.de/t/in-jsonb-objekt-mit-jsonb-set-array-setzen/567)._
