allow decoding JSON as array