turn json cache into assoc array