title: PhoneGap.exec() passing objects between JS and Obj-C
body: <p>The only way I found to passing objects between the JS and Obj-C it's by encoding the JS object by using JSON.stringify() and pass the json string to PhoneGap.exec  </p>
  
  <pre><code>PhoneGap.exec('Alarm.update',JSON.stringify(list));
  </code></pre>
  
  <p>... and rebuild the object in Obj-C:  </p>
  
  <pre><code>NSString *jsonStr = [arguments objectAtIndex:0];
  jsonStr = [jsonStr stringByReplacingOccurrencesOfString:@"\\\"" withString:@"\""];
  jsonStr = [NSString stringWithFormat:@"[%@]",jsonStr];
  NSObject *arg = [jsonStr JSONValue];
  </code></pre>
  
  <p>It's that correct ? there is a better/proper/official way for doing this ?</p>