title: how to make json work for ie7, ie8?
body: <p>I have used jquery for my page and all browsers but in IE it's not working and after a lot of struggle I came to know it was because json is not working and I tried placing this code and even after then it's not working.</p>
  
  <pre><code>&lt;!--[if lt IE 8]&gt;
      &lt;script src="http://www.json.org/json2.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  </code></pre>
  
  <p>So, how can I make json to work for ie7, ie8...?</p>
  
  <hr>
  
  <p>I've something like this:</p>
  
  <pre><code>&lt;?php
  $app = JFactory::getApplication();
  $menu = $app-&gt;getMenu();
  $link1 = 'index.php?Itemid=546';
  $link2 = 'index.php?Itemid=540';
  ?&gt;
  &lt;!--[if lt IE 8]&gt;
      &lt;script src="http://www.json.org/json2.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;script&gt;
  jQuery(document).ready(function($){  
  var $morenews = $('&lt;a&gt;',{
      class: 'all-news-link',
      href: &lt;?php echo json_encode( $link1 ); ?&gt;
  });
  </code></pre>