Added Json Array and exception logging.