How to get a JSON data to a specific place?

Hi people I am trying to get my JSON to works but I can't even suceed to retrieve it so my first question what's are the step for get's the JSON data? and please don't refer me to the manual it's not works half

also how I can get to load my JSON from the data folder?

thanks for any further answer 
You can use DataManager's loadDataFile to load from the data folder, but it's asynchronous, so you'll have to check to see if it's been loaded in before you use it, and it also sets a variable in the global scope, it doesn't let you set it as a local. If you don't want it to behave like that, you'll need to make your own version of the function.

Alternatively, I know you personally don't want to use the MVCommons, but like I told you earlier, you can just copy one of our functions to load data into your own plugin. The code is in the public domain, so there's really nothing stopping you from using it.
Nah, google is good enough:

But if you still need some help, probably you can see how stack overflow suggest.
I just checkek with hudell to get your method and this not work at all okai..and you can't modify the dataManager stuff without it's actually provoke a bug :/
I'm sure MVC has cleaner method to do this. But somehow this code works for my game (with warning about synchronous file load on the console)
 

Code:
DataManager.loadDataFileSync = function(name, src) {    var xhr = new XMLHttpRequest();    var url = 'data/' + src;    xhr.open('GET', url, false); // I just set the async argument to false. Is there any cleaner method for this?    xhr.overrideMimeType('application/json');    xhr.onload = function() {        if (xhr.status < 400) {            window[name] = JSON.parse(xhr.responseText);            DataManager.onLoad(window[name]);        }    };    xhr.onerror = function() {        DataManager._errorUrl = DataManager._errorUrl || url;    };    window[name] = null;    xhr.send();};// call this to store database from data folder to a global scope variableDataManager.loadDataFileSync('$yourvariable', filename)
The clean way would be to do an asynchronous request and to display a loading animation until it's finished. Synchronous requests completely lock up your game which feels bad from a user side.
all works default the reason why my JSON files not worked it's because it's had comment inside of it...JSON don't support comment (that's a sad thing's :c)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-a-json-data-to-a-specific-place.47712/