I am trying to map key and values to write it in json and I am unable to convert it as required in the below template : {Pregnancies : [], Glucose : [], BloodPressure : [],