JSONUtil.encode(map);
var pPrintParameters:PrintParameters = null; var jsonMap:Object = null; var strJsonMap:String = ""; pPrintParameters = new PrintParameters(); pPrintParameters.map = map; jsonMap = pPrintParameters.toJSON().Web_Map_as_JSON; strJsonMap= ObjectUtil.toString(jsonMap);
That's great, Esther. Thanks for your reply!
Does the PrintParameters yield JSON that conforms to ESRI's ExportWebMap Specification?
http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000