I\'m new to AJAX
and javascript
. In my project, I have to get a json
object in my javascript
file. I\'ve used spray
i think you just printing the object.Try someting like this
$.ajax({
url: 'http://localhost:8081/all-modules',
dataType: 'application/json',
complete: function(data){
alert("status = "+data.status+"descripttion"+data.description);
},
success: function(data){
alert("status = "+data.status+"descripttion"+data.description);
}