Inserting JSONB into Postgres via Ecto

Since you’re using an embed, you need to use either cast_embed/3 or put_embed/4 in your changeset. You could also, not use an embed, in which case you’re schema would have field :json, :map instead of embeds_one :json, Geodatajson and your changeset would work fine.