Developed the right JSON output format.