if JSON object is null, return []

Closes #2234

Docker-DCO-1.1-Signed-off-by: Charlie Lewis charliel@lab41.org
(github: cglewis)