title: Passing an object to phonegap plugin instead of a string
body: <p>I have created a simple plugin for phonegap but i want to pass a object as a parameter instead of string , below is my code structure...   </p>
  
  <pre><code>BackGroundService.java  
  
  public class BackGroundService extends Plugin {
     public PluginResult execute(String arg0, JSONArray args, String arg2) {  //How can i pass object instead or String       
     }
  }
  
  worker.js
  var worker = function(name, win, fail) {   
    PhoneGap.exec(win, win, "BackGroundService", "worker", [name]);
  }
  
  PhoneGap.addConstructor(function() {
    navigator.app.addService('BackGroundService','com.service.app.BackGroundService');
  
  })  
  </code></pre>
  
  <p>Calling from html</p>
  
  <pre><code>worker("football", win);   //Pass object instead of football        
  
  var win = function(d) {
       alert("success");      
  } 
  </code></pre>