Change to data value arrays (json doesn't allow them to be assoc. arrays so changed them to arrays of objects)