Hope you want to call json from your aspx page. if it so, then use this code.
<script type="text/javascript">
function GetDescription(a) {
$.ajax({
type: 'POST',
contentType: "application/json; charset-8;",
url: 'WT.aspx/GetRef',
data: '{ id:' + a + '}',
success: OnSuccess,
error: function (data) {
alert(data.d);
}
});
function OnSuccess(data) {
var abc = data.d;
var desc, unitprice, sp;
sp = abc.split("|");
$("#<%=lbldesc.ClientID %>").text(sp[0]);
$("#<%=hdndesc.ClientID %>").val(sp[0]);
$("#<%=lbltunitprice.ClientID %>").text(sp[1]);
$("#<%=hdntunitprice.ClientID %>").val(sp[1]);
}
}
</script>
hope this would help you.
All The Best