title: Image with picasso and Json parameter in Android
body: <p>I have a rest server where I need download image with picasso.
  I need pass a json parameter to rest server method. That rest server method is something as:</p>
  
  <p>Rest server method:</p>
  
  <pre><code>public Bitmap GetServerBitmap(Jsonobject param){
     Bitmap bitmap=get_bitmap();
     return bitmap;
  } 
  </code></pre>
  
  <p>Android client method:
  Here I need a example of the code to call the rest server method at line "MyGetServerBitmap". </p>
  
  <pre><code>    private void downloadimage(final int nr) {
      String url = Common.getServerURL() + "\"GetServerBitmap\"";
      JSONArray ja = new JSONArray();
  
      ja.put(nr);
  
      JSONObject jsonBody = new JSONObject();
      try {
          jsonBody.put("_parameters", ja);
      } catch (JSONException e) {
          e.printStackTrace();
      }
      //will return a bitmap from rest server
      Bitmap mybitmap=MyGetServerBitmap(url, jsonBody); I need a code using picasso to do it
  }
  </code></pre>
  
  <p>How could I code this "MyGetServerBitmap" method?</p>
  
  <p>I have tried the next:</p>
  
  <pre><code>private Bitmap MyGetServerBitmap(String url, JsonObject jsonBody){
  Bitmap bmp;
  //Where I pass json parameter in picasso?
  Picasso.with(this)
      .load(url)
      .error(R.drawable.image_name)
      .into(bmp);
      return bmp;   
  }
  </code></pre>
  
  <p>But I can't see no option to pass json parameter.</p>
  
  <p>Regards, Luiz</p>