Added support for json.

json is now the default output format.