Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

99
Views
PostgREST return not null values of JSON object

I have a postgrSQL table with three columns, one of which is a json field:

  id [num]  ||  school [char]   ||  info [json]
============================================================================
   1        ||   1st            || [{"fistname": "Bill", "Lastname": "Maison"}]
   2        ||   2nd            || [{"fistname": "John", "Lastname": "Handson"}]
   3        ||   3rd            || []
 

I want to filter the empty info fields with postgREST.

My url right now : https://127.0.0.1/table?&info->0->firstname=is.null

This actually returns all the values that are null, but how do I do it the other way? Exclude all the null values?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Found it. For anyone that will look this up in the future : https://127.0.0.1/table?&info->0->firstname=not.is.null

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!