The codes below is that of a therasus synonymns. The query search word is "refund" I have the following codes
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<div id="data"></div>
<script>
var urls = "http://words.bighugelabs.com/api/2/648c23bcbb99d535a06e098b426a5b76/refund/php";
$(document).ready(function() {
$.get(urls,function(data) {
$("#data").html(data);
});
});
</script>
</body>
</html>
The response i get is this:
a:2:{s:4:"noun";a:1:{s:3:"syn";a:4:{i:0;s:9:"repayment";i:1;s:8:"defrayal";i:2;s:10:"defrayment";i:3;s:7:"payment";}}s:4:"verb";a:1:{s:3:"syn";a:4:{i:0;s:6:"return";i:1;s:5:"repay";i:2;s:9:"give back";i:3;s:3:"pay";}}}
Now, I don't even understand this. I want to be able to get put into the div only some parts of the response...The wanted words are those on this part "Syn":-
repayment
defrayal
defrayment
payment
return
repay
give back
pay
NOTE: that search words (ie. refund) can change depending on the user query