Changed serialization to utilize a key/value object instead of an array.