More places to correctly ensure json_decoded data is an array.