title: Consuming json object send by get method in jersey in java
body: <p>I try to consume java jersey web service from angular js . below part of conroller whose call ws</p>
  
  <pre><code>    UserService.getProfilUser(GLOBALS.DEFAULT_CLIENT_IP,JSON.stringify($rootScope.user),JSON.stringify($rootScope.magasins[0])).then(function(response){
           $scope.profilUser=response;
  })
  </code></pre>
  
  <p>Below the getProfilUser function in UserService</p>
  
  <pre><code> this.getProfilUser=function(clientIP,user,magasin)
      {
          var deferred=$q.defer();
          $http.get(url+'user/getUserProfil?clientIP='+clientIP+'&amp;user='+user+'&amp;magasin='+magasin).success(function(response){
              deferred.resolve(response)
          }).error(function(err){
              deferred.reject(err);
          })
  
          return deferred.promise;
      }
  </code></pre>
  
  <p>On my server side  and where I have a problem, I use @BeanParam to map my Json object with my bean
  below the code of <code>getUserProfil</code> ws</p>
  
  <pre><code>@GET
  @Path("getUserProfil")
  @Consumes(MediaType.APPLICATION_JSON)
  public Profil getUserProfilWithRCAccess(@QueryParam("clientIP")String clientIP, @BeanParam User user,@BeanParam Magasin magasin){
  
      System.out.println("ClientIP "+clientIP);
      System.out.println("User "+user.getEmploi());
      System.out.println("Magasin "+magasin.getLbMaga());
  }
  </code></pre>
  
  <p>But </p>
  
  <pre><code> System.out.println("User "+user.getEmploi())==&gt;null 
   System.out.println("Magasin "+magasin.getLbMaga())==&gt;null
  </code></pre>
  
  <p>How can I fix it?</p>