changed assoc array generators to serialize to json