<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Get JSON Representation of Map? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310727#M7392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's great, Esther.&amp;nbsp; Thanks for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the PrintParameters yield JSON that conforms to ESRI's ExportWebMap Specification? &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 13:14:39 GMT</pubDate>
    <dc:creator>AlejandroVargas</dc:creator>
    <dc:date>2012-12-19T13:14:39Z</dc:date>
    <item>
      <title>How to Get JSON Representation of Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310725#M7390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe my question has a simple answer.&amp;nbsp; I just don't know how to do this yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcGIS API for Flex 3.0, how does one get the JSON representation of a Map.&amp;nbsp; I'm looking for a function like map.asJSON() or something like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it as simple as a&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;JSONUtil.encode(map);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 21:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310725#M7390</guid>
      <dc:creator>AlejandroVargas</dc:creator>
      <dc:date>2012-12-18T21:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get JSON Representation of Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310726#M7391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Alejandro,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if there is some function in the API to convert directly the map to JSON, but you can do the trick with the class &lt;/SPAN&gt;&lt;STRONG&gt;PrintParameters&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esther&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310726#M7391</guid>
      <dc:creator>EstherColero</dc:creator>
      <dc:date>2021-12-11T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get JSON Representation of Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310727#M7392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's great, Esther.&amp;nbsp; Thanks for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the PrintParameters yield JSON that conforms to ESRI's ExportWebMap Specification? &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 13:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310727#M7392</guid>
      <dc:creator>AlejandroVargas</dc:creator>
      <dc:date>2012-12-19T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get JSON Representation of Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310728#M7393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That's great, Esther.&amp;nbsp; Thanks for your reply!&lt;BR /&gt;&lt;BR /&gt;Does the PrintParameters yield JSON that conforms to ESRI's ExportWebMap Specification? &lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Alejandro,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure, but print widget is supposed to use that specification to call the geoprocess, so should not be any difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esther&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 14:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-json-representation-of-map/m-p/310728#M7393</guid>
      <dc:creator>EstherColero</dc:creator>
      <dc:date>2012-12-19T14:31:21Z</dc:date>
    </item>
  </channel>
</rss>

