title: how to change type of return with Spring Boot?
body: <p>how to change type of return?
  I tried doing this but it doesn't work. How can I do it correctly ?</p>
  <p>current response :</p>
  <pre><code>[
      [
          1,
          &quot;ADMIN&quot;,
          &quot;ADMIN&quot;
      ],
      [
          1,
          &quot;Ali&quot;,
          &quot;RE&quot;
      ],
      [
          2,
          &quot;Sami&quot;,
          &quot;AZ&quot;
      ],
  ]
  </code></pre>
  <p>i want to sent request like below postman</p>
  <pre><code>[
      [
         &quot;nbrResponsable&quot;: 1,
         &quot;nom_personnel&quot;:&quot;ADMIN&quot;,
         &quot;prenom_personnel&quot;:&quot;ADMIN&quot;
     ]
         &quot;nbrResponsable&quot;: 1,
         &quot;nom_personnel&quot;:&quot;Ali&quot;,
         &quot;prenom_personnel&quot;:&quot;RE&quot;
     ],
  ]
  </code></pre>
  <p>Repository:</p>
  <pre><code>@Query(value =&quot;SELECT count(pe.personnel_id)nbrResponsable, pe.prenom_personnel,pe.nom_personnel &quot; +
          &quot;             FROM personnel pe &quot; +
          &quot;join  action_securisation ac on   pe.personnel_id = ac.responsable_action_securisation_id &quot; +
          &quot;group by pe.prenom_personnel,pe.nom_personnel &quot; , nativeQuery = true)
  List ResponsableActionCorrective();
  </code></pre>
  <p>Service:</p>
  <pre><code>public List ResponsableActionCorrectiveByPeriod() {
      List ListeActionCorrective ;
         ListeActionCorrective=listeActionCorrectiveRepository.ResponsableActionCorrective();
      return ListeActionCorrective;
  }
  </code></pre>
  <p>Controller :</p>
  <pre><code>   @GetMapping(&quot;/responsableActionCorrectiveByPeriod&quot;)
          public List ResponsableActionCorrectiveByPeriod() {
              return listeActionCorrectiveService.ResponsableActionCorrectiveByPeriod();
          }
  </code></pre>