title: Drupal node.save and JSONP
body: <p>I am having an issue with call Drupal node.save using MooTool's JSONP. Here is an example.</p>
  
  <p>Here is my request:</p>
  
  <p>callback Request.JSONP.request_map.request_1<br>
  method node.save<br>
  sessid 123123123123123<br>
  node {"type":"blog","title":"New Title","body":"This is the blog body"}</p>
  
  <p>Here is my result</p>
  
  <p>HTTP/1.0 500 Internal Server Error</p>
  
  <p>I got this working before, but i used AMFPHP and was able to send objects to drupal. I am assuming that this has to do with Drupal expecting an object, but since it is a GET it gets transformed as a string. Is there any way of getting around this with out hacking the code?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$('newBlogSubmit').addEvent('click', function()
  {
      var node = {
          type : "blog",
          title:"New Title",
          body :"This is the blog body"
      }
  
      var string = JSON.encode(node);
      string.escapeRegExp()
  
      var sessID = _sessID;
  
      DrupalService.getInstance().node_save(string, sessID, drupal_handleBlogSubmit);
  });
  </code></pre>
  
  <p>My Drupal Service JS Code:</p>
  
  <pre><code>//NODE
  DrupalService.prototype.node_save = function(node, sessid, callback){
      var dataObj = {
          method : "node.save",
          sessid : sessid,
          node : node
      }
      DrupalService.getInstance().request(dataObj, callback);
  }
  
  
  //SEND REQUEST AND CALLBACK FUNCTION
  
  DrupalService.prototype.request = function(dataObject, callback){
      new JsonP('http://myDrupalSite.com/services/json', {data: dataObject,onComplete: callback}).request();
  }
  </code></pre>
  
  <p>I am trying to connect the dots, but not too familiar with Drupal, but i would guess all I need to do is turn the string back into an object. Any ideas where I should be looking, or if there is an existing patch?</p>