--json output format fixes for ad commands