Add json flag for illustrate output