Javascript examples for jQuery:Json
Parse json and show data in a dropdown button using Javascript
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function(){//from w w w .ja v a2s .com var data = jQuery.parseJSON('[{"my_id":"28","name":"TEST","slug":"audi","term_group":"0"}]'); $.each(data, function (index, employee) { console.log(employee.name); }); }); </script> </head> <body> </body> </html>