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
hi,
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("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"));

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
thanks..

Outcomes