Cognizant Interview Question

given a dictionary convert it to json?