check if json is empty django views code example
Example: empty check on django json field
// jsonfield default=list
Model.objects.filter(jsonfield__exact=[])
// jsonfield default=dict
Model.objects.filter(jsonfield__exact={})
// jsonfield default=list
Model.objects.filter(jsonfield__exact=[])
// jsonfield default=dict
Model.objects.filter(jsonfield__exact={})