initial support for json-output