title: How to return a string in json?
body: <p>I have am using ajax to retun a array [[int,string],....] in index.json.</p>
  
  <p>Here is my index.json</p>
  
  <pre><code>&lt;%= @custom_fields.map {|e| [e.id ,e.name] }.to_json%&gt;
  </code></pre>
  
  <p>and that is my ajax requiest</p>
  
  <pre><code> $.get("/categories/" + (categoryId) + "/custom_fields.json", {}, function(data) {
          console.log(data);
        });
  </code></pre>
  
  <p>console.log prints nothing.</p>
  
  <p>It work almost fine, cause in server log( when i use raise ....inspect) I have </p>
  
  <pre><code>("[[17,\"\\u0411\\u0440\\u0435\\u043d\\u0434\\u044b\"]]")
  </code></pre>
  
  <p>It have normal id , but my string value "name" is encoded(I think so).
  What I am doing wrong. String is in Russian language, maybe cause of this I have that problem?
  Thanks in advance</p>