title: iOS NSDictionary datatype to javascript in phonegap. How to?
body: <p>New to phonegap. Less knowledge about scripting. </p>
  
  <p>in iOS Native Code, passing NSDictionary along with CDVCommandStatus_OK 
  to java script, as below. </p>
  
  <pre><code>  NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:@"kolaveri", @"Name",nil];
   result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:dict];
   [self writeJavascript:[result toErrorCallbackString:callbackId]]; 
  </code></pre>
  
  <p>In JavaScript, </p>
  
  <p>The following Function is getting invoked:</p>
  
  <pre><code>  function MySuccessHandler (result) 
      { 
          alert("SUCCESS: \r\n"+result ); 
      } 
  </code></pre>
  
  <p>When NSString is passed, the same gets printed in the alert message.</p>
  
  <p>Having passed NSDictionary ,  how to get the key/values in the javascript ?</p>
  
  <p>it prints <strong>[object Object]</strong> in the alert Message. </p>
  
  <p>Kindly provide few pointers on it. </p>