title: How to get and parse json answer from google translate
body: <p>I want to translate word with ajax request to google translate
  If i use curl, it willl be like:</p>
  
  <pre><code>curl_init("http://translate.google.com/translate_a/t?client=t&amp;text=hello&amp;sl=en&amp;tl=ru");
  </code></pre>
  
  <p>But i cant use server-side scripts with queries because they will be from same IP<br>
  But i cant use JSONP request too, because it's not allowed i think. Here's server response:</p>
  
  <blockquote>
    <p>[[["привет","hello","privet",""]],[["",["Алло","Здравствуйте."]],["имя существительное",["приветствие","приветственный возглас","возглас удивления"]],["глагол",["здороваться","звать","окликать"]],["междометие",["привет","здравствуйте","алло"]]],"en",,[["привет",[5],1,0,1000,0,1,0]],[["hello",4,,,""],["hello",5,[["привет",1000,1,0],["Здравствуй",0,1,0],["Здравствуйте",0,1,0],["Hello",0,1,0]],[[0,5]],"hello"]],,,[["en"]],13]</p>
  </blockquote>
  
  <p>And i cant load content to iframe</p>
  
  <pre><code>&lt;iframe src="http://translate.google.com/translate_a/t?client=t&amp;text=hello&amp;sl=en&amp;tl=ru"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>because response content type is "text/javascript" and browser <a href="http://jsfiddle.net/YnZ2u/" rel="nofollow">downloads a file</a></p>
  
  <p>PS. i cant decode content with php function json_decode() or with jquery.ajax because response json is corrupt. You can test it here <a href="http://json.parser.online.fr/" rel="nofollow">http://json.parser.online.fr/</a></p>
  
  <p>Give me an advice, please</p>