I've got array send from php that I'm sending over JSON to javascript file. It works using jquery.GET, but I want to use just javascript. I know there's a way, but I can't find it and I bet there's a folk that knows the answer.
This is my code for jquery:
$.get('loadSomething.php', function(data) {
var dataSomething = data.something;
// Then working with the data I received from PHP file
}
I want the same thing but using only javascript.