fix bug with how arrays are converted from xml -> json