$ juju switch --format [yaml,json]

$ juju switch --format [yaml,json] prints information
about the environment: current user, api endpoints
and previous and current environment names. 

$ juju switch maintains current behaviour for
backwards compatibility.