title: Error: Invalid data; couldn't passe JSON object, array, or value
body: <p>I am having a problem when trying to make POST or PUT requests to Firebase RESTful API...
  To make the request I am using Valve's Panorama JavaScript which execution is handled by Google V8 engine.</p>
  
  <p>A GET request (which works without problems) looks like this:</p>
  
  <pre><code>$.AsyncWebRequest("https://&lt;project&gt;.firebaseio.com/-KrFV19WfaC7tfY6qys6.json",
          {
              type: "GET",
              complete: function (data){
                  $.Msg("WOW: " + JSON.stringify(data));
              },
              error: function (err){
                  $.Msg("Error: " + JSON.stringify(err));
              },
          });
  </code></pre>
  
  <p>And I get the response:</p>
  
  <pre><code>WOW: {"statusText":"success","responseText":"{\"a\":\"1\"}\u0000","status":200}
  </code></pre>
  
  <p>But when I try to do a PUT or POST request which code looks like this:</p>
  
  <pre><code>$.AsyncWebRequest("https://&lt;project&gt;.firebaseio.com/game.json",
          {
              type: "POST",
              data: {"A":"B"},
              success: function (data){
                  $.Msg("WOW: " + JSON.stringify(data));
              },
              error: function (err){
                  $.Msg("Error: " + JSON.stringify(err));
              },
          });
  </code></pre>
  
  <p>I get the next response:</p>
  
  <pre><code>Error: {"statusText":"error",
          "responseText":"{\n  \"error\" : \"Invalid data; couldn't parse JSON object, array, or value.\"\n}\n\u0000",
          "status":400}
  </code></pre>
  
  <p>Can somebody help me understand what could be the problem? </p>