Skip to content

Json columns don't deserialize correctly #250

Closed

Description

@brandonchinn178

If I have a postgres column of type JSONB, postgrest returns it as the deserialized json value. But the types that supabase generates uses the pydantic Json type, which requires the input to be a JSON string.

Workaround is to manually json.dumps before using .model_validate()

Activity

  1. added
    bug
    on Aug 28, 2026
  2. o-santi commented on Oct 2, 2026

    @o-santi

    @brandonchinn178 can you confirm this is still an issue? I believe #124 fixed this.

  3. brandonchinn178 commented on Oct 2, 2026

    @brandonchinn178
    Author

    Looks great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions