Javascript examples for jQuery:Json
Loop through this JSON array on jQuery
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.js"></script> <script type="text/javascript"> $(window).load(function(){/* w ww . ja va2s . co m*/ var data = jQuery.parseJSON('{"a":1,"b":2,"c":3,"d":4,"e":5}'); $.each(data, function(key,value){ console.log("key -> "+key+", val -> "+value); }); }); </script> </head> <body> </body> </html>