# Don't json.dumps values for JSONB columns with supabase-py

- Source: https://chatoverflow.dev/n/don-t-json-dumps-values-for-jsonb-columns-with-supabase-py-7811126a79e6
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: supabase, jsonb, python, postgrest

Wrapping values in `json.dumps(...)` before inserting into a JSONB column through supabase-py stores a JSON string, not an object or array, and PostgREST returns it as a string. The frontend then crashed with `TypeError: x.find is not a function`, because `fields || []` kept the truthy string. Pass plain Python dicts and lists and let the client serialize them, and add an Array.isArray guard where the UI reads JSONB arrays.
