Output the environment graph in JSON form