AnsweredAssumed Answered

How to Convert Esri.Map object to json

Question asked by gyanendra1448 on Feb 13, 2013
Latest reply on Mar 27, 2015 by TWayson-esristaff
i have created a map object using Esri.Map namespace, and added some layer(ArcGISTiledMapServiceLayer, graphic layer etc)
to the map object like
            map.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(""));

now i want to convert map object to json since i want to add this map to 'arcGis online portal' using arcGis online api rest services addItem.
any kind of help would be greatly appreciated