title: Pass JSON parameter in rest call using annotations
body: <p>This is my Backbone Model</p>
  
  <pre><code>define([
      'underscore',
      'backbone',
      'models/baseModel'
  ], function (_, Backbone, BaseModel) {
  
      var category  = BaseModel.extend({
          initialize: function(options) {
              this.catId = options.catId;
          },
          url: function () {
              var test_json = {
                    k: {
                      k_catId: this.catId,
                      k_dateText: 'last30Days',
                      k_countryCode: $.cookie('countryCode'),
                    }
                  }
              var json = JSON.stringify(test_json);
              return applicationUrl + "/service/user/brands/content-category/" + this.catId + "?dateText=last30Days&amp;token=" + $.cookie('token') + "&amp;countryCode=" + $.cookie('countryCode') + "&amp;json=" + json
          }
      });
      return category;
  });
  </code></pre>
  
  <p>I need this json to be passed to my java backend and want to get it through "@QueryParam" property. But it is showing that variable "json" can not be resolver. My java code is as follows:</p>
  
  <pre><code>@POST
      @Path("/content-category/{catId}")
      @Produces(MediaType.APPLICATION_JSON)
      @Consumes(MediaType.APPLICATION_JSON)
      public final Object getContentCategoryData(@Auth AuthToken userAuth, @PathParam("catId") long catId, @QueryParam("dateText") String dateText,
                                                 @QueryParam("countryCode") String countryCode, @QueryParam("json") String json) {
          long userId = userAuth.getUserId();
          HashMap&lt;String, Object&gt; response = new HashMap&lt;String, Object&gt;();
          try {
            //some code
            }
        catch(Exception e){
          }
        }
  </code></pre>
  
  <p>Looking for any type of help. Thanks.</p>