# Insert String, Integer, Map, List in a jsonb PostgreSQL column

**URL:** <https://forum.elixirforum.com/t/insert-string-integer-map-list-in-a-jsonb-postgresql-column/19276>\
**Category:** Questions\
**Tags:** ecto, postgres\
**Created:** [January 10, 2019, 2:35pm UTC](https://forum.elixirforum.com/t/insert-string-integer-map-list-in-a-jsonb-postgresql-column/19276 "2019-01-10T14:35:06Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![50kudos](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/50kudos/32/4435_2.png) [@50kudos](https://forum.elixirforum.com/u/50kudos)\
**Post date:** [January 11, 2019, 3:54pm UTC](https://forum.elixirforum.com/t/insert-string-integer-map-list-in-a-jsonb-postgresql-column/19276/10 "2019-01-11T15:54:15Z")

</div>

I think wrapping into single key shouldn’t affect any business logic.

```
%{data: "toto"}
%{data: 12}
%{data: [1,2]}

```

Actually, to avoid `struct.data.data` just name it `jsonb`! so you retrieve it `struct.data.jsonb` .. I think it makes sense.

---

_[View the full topic](https://forum.elixirforum.com/t/insert-string-integer-map-list-in-a-jsonb-postgresql-column/19276)._
