o/p should be in json.