This is just an example. We do not recomand to expose Key value in client code.
<script type="text/javascript"> var Code = "910000001/888555;888900;888901;888902"; var Key = "bda11d91-7ade-4da1-855d-24adfe39d174"; $(document).ready(function () { $.ajax({ url: "EXBService/json/" + Code + "/?apikey=" + Key, type: "GET", timeout: 10000, contentType: "application/json; charset=utf-8", success: function (msg) {ServiceSucceeded(msg);}, error: function (msg) {ServiceFailed(msg);}, }); }) function ServiceFailed(result) { alert('Service call failed: ' + result.status + '' + result.statusText); } function ServiceSucceeded(result) { var data = result.Plans ; var content = "<table cellspacing=0 border=1 width='600px'>" + "<tr><td width='60px'><strong>PlanID</strong></td>" + "<td><strong>Plan Name</strong></td>" + "<td width='100px'><strong>Balance</strong></td></tr>" ; $.each(data, function(i) { if (data[i].Error == null) { content = content + "<tr>" + "<td>" + data[i].PlanId + "</td>" + "<td>" + data[i].PlanName+ "</td>" + "<td>" + data[i].CurrentBalance + "</td>" + "</tr> "; } }); content = content + " </table> "; $("#result").html(content); } </script> <div id="result"></div>