<?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 Saving Web Map JSON? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1636007#M87405</link>
    <description>&lt;P&gt;In JS SDK, what's the easiest way to save a web map in its current state as a JSON object? Is there a method to generate objects of the ⁠&lt;A title="https://developers.arcgis.com/web-map-specification/objects/webmap/" href="https://developers.arcgis.com/web-map-specification/objects/webmap/" target="_blank"&gt;Web Map specification&lt;/A&gt;? I see a method to load web maps with&amp;nbsp;&lt;SPAN&gt;WebMap&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromJSON, but can't find where to generate such an object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've been building the object from my Map according to the spec, but it's running into quite a few issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 16:34:34 GMT</pubDate>
    <dc:creator>arcgisbenjamin</dc:creator>
    <dc:date>2025-07-24T16:34:34Z</dc:date>
    <item>
      <title>Saving Web Map JSON?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1636007#M87405</link>
      <description>&lt;P&gt;In JS SDK, what's the easiest way to save a web map in its current state as a JSON object? Is there a method to generate objects of the ⁠&lt;A title="https://developers.arcgis.com/web-map-specification/objects/webmap/" href="https://developers.arcgis.com/web-map-specification/objects/webmap/" target="_blank"&gt;Web Map specification&lt;/A&gt;? I see a method to load web maps with&amp;nbsp;&lt;SPAN&gt;WebMap&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromJSON, but can't find where to generate such an object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've been building the object from my Map according to the spec, but it's running into quite a few issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 16:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1636007#M87405</guid>
      <dc:creator>arcgisbenjamin</dc:creator>
      <dc:date>2025-07-24T16:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Web Map JSON?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1636626#M87414</link>
      <description>&lt;P&gt;The absence of a method in the SDK to generate a JSON object in webmap specification appears intentional.&amp;nbsp; Are you needing the map information in the webmap JSON format, or would perhaps something similar suffice?&amp;nbsp; I ask because it's fairly easy to get hold of a web_map_as_json object generated by the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html" target="_self"&gt;print&lt;/A&gt; module and used as input to&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/exportwebmap-specification/" target="_self"&gt;the printing service&lt;/A&gt;.&amp;nbsp; It's not the same as the webmap specification, but includes much of the same info.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 23:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1636626#M87414</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-07-25T23:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Web Map JSON?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1638125#M87453</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;'s comment above. You can also use the Save a Web Map sample as a guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=webmap-save" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=webmap-save&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just add to line 101:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;console.log("webmap object: ", item);&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 18:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-web-map-json/m-p/1638125#M87453</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-07-31T18:02:16Z</dc:date>
    </item>
  </channel>
</rss>

