Bugfix: json output for api version 4