client: cleanup json output