title: Is this server jsonp response is a valid one?
body: <p>I am the client guy who sends the server guy a request. My final goal is to send the request in <strong>jsonp</strong>.</p>
  
  <p>This is the server response I get when I send the request with <code>?accept=json</code> (and get an invalid session error because it is not jsonp)</p>
  
  <pre><code>{"errorCode":-15,"errorDescription":"SessionNotFoundException - Session not found","success":false,"payload":null}
  </code></pre>
  
  <p>I can read it and it is fine.</p>
  
  <p><strong>However</strong>, this is the server response for <code>?accept=jsonp</code>:</p>
  
  <pre><code>jQuery171024326910870149732_1351429007451({"action":"", "type":"", "callerId":""}, {"errorCode":0,"errorDescription":"OK","success":true,"payload":null});
  </code></pre>
  
  <p>it is in the form of these 2 objects which I don't know how to read: <code>{a},{b}</code>.</p>
  
  <p>When I use jQuery ajax call 
  the output of the server's data is only the <code>{a}</code> part: </p>
  
  <p><code>Object {action: "", type: "", callerId: ""}</code></p>
  
  <p><strong>My 2 questions are:</strong></p>
  
  <ol>
  <li>Is a server response with 2 objects (<code>{a},{b}</code>) is valid or not? Does the server guy makes a mistake by sending that kind of object or it is valid?</li>
  <li>How do I read the jsonp object? what is wrong with my ajax call that I can't seem to be reading it right?</li>
  </ol>
  
  <p>This is the ajax call I use:</p>
  
  <pre><code>$.ajax({
              url:url,
              dataType:'jsonp',
              success:function(data){
                  console.log("data is,"data")
                  //if the call was success
                  if (data.success) {
  
                      //if errors
                  }   else {
  
                  }
              }
          } 
  </code></pre>