I'm having trouble getting data with an ajax request.
I have the code
val myPromise = $.ajax(url)
myPromise.done((data: Any, textStatus: String, jqXHr: JQueryXHR) => {
println(data)
})
in the console log I get [object Object]
if I try to match data I get
Uncaught TypeError: Cannot read property 'getName__T' of null
I checked the textStatus and it returns success. I've also checked the request in the chrome dev tools and it is returning a json string. How do I use that json string after I've recieved it?
I'm having trouble getting data with an ajax request.
I have the code
in the console log I get
[object Object]if I try to match
dataI getI checked the
textStatusand it returns success. I've also checked the request in the chrome dev tools and it is returning a json string. How do I use that json string after I've recieved it?