I need to convert a json return from php to asp classic. How can I do that?
In index.php
<script>
function (){
$.ajax({
url: ajax.php,
dataType: "json",
data: {
ROWID : rowid
},
success: function(data){
alert(data[0]);
}
});
}
</script>
In ajax.php
echo json_encode(array(
"TRUE"
));
return;
I will be getting a java alert messege 'TRUE'
what shall be in asp?
Response.Write json_encode(array(
"TRUE"
));
doesn't work. can't find a full solutuion to it. any ideas how shall I do it in asp classic?