Added option parameter for generating pretty printed json