Arcgis JS I need help with refreshing the map, when the variable changes and the other json file is loaded
What is the layer type in your map please. For example, ArcGISDynamicMapServiceLayer.
Jędrek,
Sure you would use esriRequest to get the json file and then use Dojo JSON class to parse the result as a true json object.