title: How to extract Array from JSON in $.ajax response
body: <p>I have a json value converted from array in ajax response.</p>
  
  <pre><code>{"Text":"Please provide a value","Email":"Please provide a value"}
  </code></pre>
  
  <p>I need the response json to be extracted in a div using $(div).html():</p>
  
  <pre><code>Text-Please provide a value
  Email-Please provide a value
  </code></pre>
  
  <p>I tried it using $.each():</p>
  
  <pre><code>var json=JSON.stringify({"Text":"Please provide a value","Email":"Please provide a value"});
      var arr = [];
      var obj = jQuery.parseJSON(json);
      $.each(json,function(key,value)
      {
       arr.push('&lt;li&gt;'+value+'&lt;/li&gt;');
      });
      var arrval =arr.join('');
      console.log(arrval);
  </code></pre>
  
  <p>But I got output as undefined. I know there is some logical mistake I have done while extracting? What have I done wrong in here??</p>
  
  <p>Note: The array key value pair in json can be dynamic ie., it may be one, two or more..</p>