Input is taken from text file in json format