Is Empty

Check if a value is empty (null, empty string, list, or dict).

Code

General
import json
v = '' if value == '' else json.loads(value)
return not v if isinstance(v, (str, list, dict)) else v is None

Parameters

Value to check

Server

More Python Snippets