<?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: AGSCoding in Quartz in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86025#M874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mary,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting me know about AGSJSONSerializable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I think the documentation could be improved. For example, if you look at AGSEnvelope you can see in the class diagram that it conforms to AGSJSONSerializable by way of inheriting from AGSGeometry. But neither AGSEnvelope nor AGSGeometry lists the toJSON and fromJSON methods. If you look at AGSPortalItem, on the other hand, the documentation does list those methods. So it's a bit inconsistent and confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Some classes that previously supported JSON serialization, such as AGSGraphic and AGSFeatureLayer, are no longer supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 22:59:00 GMT</pubDate>
    <dc:creator>JamesRichards1</dc:creator>
    <dc:date>2016-11-23T22:59:00Z</dc:date>
    <item>
      <title>AGSCoding in Quartz</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86023#M872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like all of the initWithJSON and encodeToJSON methods have been removed in Quartz. Also, it seems like none of the objects conform to NSCoding. How can we serialize / deserialize objects in the Quartz SDK?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 01:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86023#M872</guid>
      <dc:creator>JamesRichards1</dc:creator>
      <dc:date>2016-11-23T01:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: AGSCoding in Quartz</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86024#M873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At version 100.0.0 Objects can be serialised if they conform to the&amp;nbsp;&lt;SPAN class=""&gt;AGSJSONSerializable Protocol. The methods to work with the JSON are toJSON and fromJSON.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;do {jsonDict = try self.map.toJSON() as! NSDictionary
 } catch {
 print("Failed to obtain map json")
}‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86024#M873</guid>
      <dc:creator>MaryHarvey</dc:creator>
      <dc:date>2021-12-10T23:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: AGSCoding in Quartz</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86025#M874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mary,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting me know about AGSJSONSerializable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I think the documentation could be improved. For example, if you look at AGSEnvelope you can see in the class diagram that it conforms to AGSJSONSerializable by way of inheriting from AGSGeometry. But neither AGSEnvelope nor AGSGeometry lists the toJSON and fromJSON methods. If you look at AGSPortalItem, on the other hand, the documentation does list those methods. So it's a bit inconsistent and confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Some classes that previously supported JSON serialization, such as AGSGraphic and AGSFeatureLayer, are no longer supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 22:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agscoding-in-quartz/m-p/86025#M874</guid>
      <dc:creator>JamesRichards1</dc:creator>
      <dc:date>2016-11-23T22:59:00Z</dc:date>
    </item>
  </channel>
</rss>

