Changed so that the default 'json' value is specified as an attribute.