filter paths on json outputs