if JSON object is null, return []

Closes #2234