title: How to get random values in JSON
body: <p>I have json string in javascript variable . I want to get random value from JSON string and set into HTML. </p>
  
  <pre><code>var jsonContent= {
            "featured": [
              {
                "id": "111",
                "title": "post title 111",
                "desc": "This is a test desc 111"
              },
              {
                "id": "222",
                "title": "post title 222",
                "desc": "This is a test desc 222"
              },
              {
                "id": "333",
                "title": "post title 333",
                "desc": "This is a test desc 333"
              }
      ]
  };
  </code></pre>
  
  <p>for e.g first key value assign to my html like this:- </p>
  
  <pre><code>   &lt;div class="r-v-details"&gt;
      &lt;span class="r-v-title"&gt;post title 111&lt;/span&gt;
      &lt;span class="r-v-description"&gt;This is a test desc 222&lt;/span&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>How can I get random key values from JSON string? Does I need to parse JSON into array then I can get random value? or I can achieve this by json only?
  Can you please suggest me. </p>