Cognizant interview question

given a dictionary convert it to json?