decode body to array