© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
b3n123

Query JSON Column

I'm trying to query a table where an item in a JSON column is in an array.
For example, the JSON in the column is ["1","2"] and the array to compare to is ["2","3"] - this row would therefore be returned because 2 is present.
I've tried the following but it doesn't work: .contains('JSON_column', JSON.stringify(my_array))
Any help would be much appreciated.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How do I query JSON ?
SupabaseSSupabase / help-and-questions
4y ago
I can't filter posts by json column
SupabaseSSupabase / help-and-questions
4y ago
JSON column is being returned as a string?
SupabaseSSupabase / help-and-questions
4y ago
Better to use new table or JSON column?
SupabaseSSupabase / help-and-questions
4y ago