"location" : null // this is not really an array it's a null object
"location" : [] // this is an empty array
It looks like this API returns null when there is no location defined – instead of returning an empty array, not too unusual really – but they should tell you if they’re going to do this.