<?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 esri.Graphic(json) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-graphic-json/m-p/754865#M69789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This constructor has got me beat.&amp;nbsp; Here is an example json string.&amp;nbsp; To obtain this string, I called toJson() on a graphic, then used Ext.util.JSON.encode() to be able to save and later retrieve it from a database.&amp;nbsp; Problem is, once I've retrieved it, the constructor esri.Graphic(json) fails to load up the geometry/symbol properties from this json string.&amp;nbsp; Can anyone assist?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"{"geometry":{"rings":[[[-12440279.227465763,4451692.527327511],[-12440279.227465763,4451692.527327511],[-12440279.227465763,4451692.527327511]]],"spatialReference":{"wkid":102100}},"symbol":{"color":[51,153,102,64],"outline":{"color":[0,0,0,255],"width":1.5,"type":"esriSLS","style":"esriSLSDashDot"},"type":"esriSFS","style":"esriSFSSolid"}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Well that was easy.&amp;nbsp; Just had to decode it using Ext.util.JSON.decode() and pass the resulting object to the constructor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jan 2011 18:17:00 GMT</pubDate>
    <dc:creator>MarkHoover</dc:creator>
    <dc:date>2011-01-14T18:17:00Z</dc:date>
    <item>
      <title>esri.Graphic(json)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-graphic-json/m-p/754865#M69789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This constructor has got me beat.&amp;nbsp; Here is an example json string.&amp;nbsp; To obtain this string, I called toJson() on a graphic, then used Ext.util.JSON.encode() to be able to save and later retrieve it from a database.&amp;nbsp; Problem is, once I've retrieved it, the constructor esri.Graphic(json) fails to load up the geometry/symbol properties from this json string.&amp;nbsp; Can anyone assist?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"{"geometry":{"rings":[[[-12440279.227465763,4451692.527327511],[-12440279.227465763,4451692.527327511],[-12440279.227465763,4451692.527327511]]],"spatialReference":{"wkid":102100}},"symbol":{"color":[51,153,102,64],"outline":{"color":[0,0,0,255],"width":1.5,"type":"esriSLS","style":"esriSLSDashDot"},"type":"esriSFS","style":"esriSFSSolid"}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Well that was easy.&amp;nbsp; Just had to decode it using Ext.util.JSON.decode() and pass the resulting object to the constructor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 18:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-graphic-json/m-p/754865#M69789</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2011-01-14T18:17:00Z</dc:date>
    </item>
  </channel>
</rss>

