<?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 Graphic.fromJson() always returning null. in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-fromjson-always-returning-null/m-p/55092#M419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on an application that makes use of a Server Object Extension that has an operation that returns an array of graphics that is formatted as json.&amp;nbsp; When I was using the beta sdk I was able to call Graphic.fromJson() on each json object in the array and would get a graphic back.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have updated to the new version of the sdk and now Graphic.fromJson() always returns null for the same response from the SOE.&amp;nbsp; I have even created some simple json strings that contain attributes and geometry and I receive null for them also. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For sanity checking, I have tested the FeatureSet.fromJson() method and GeometryEngine.jsonToGeometry() to make sure that I am setting up a valid JsonParser and they both work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there other required values that need to be in the json for a graphic other than attributes and geometry?&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, 03 Jan 2012 14:20:19 GMT</pubDate>
    <dc:creator>danielconrad</dc:creator>
    <dc:date>2012-01-03T14:20:19Z</dc:date>
    <item>
      <title>Graphic.fromJson() always returning null.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-fromjson-always-returning-null/m-p/55092#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on an application that makes use of a Server Object Extension that has an operation that returns an array of graphics that is formatted as json.&amp;nbsp; When I was using the beta sdk I was able to call Graphic.fromJson() on each json object in the array and would get a graphic back.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have updated to the new version of the sdk and now Graphic.fromJson() always returns null for the same response from the SOE.&amp;nbsp; I have even created some simple json strings that contain attributes and geometry and I receive null for them also. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For sanity checking, I have tested the FeatureSet.fromJson() method and GeometryEngine.jsonToGeometry() to make sure that I am setting up a valid JsonParser and they both work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there other required values that need to be in the json for a graphic other than attributes and geometry?&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, 03 Jan 2012 14:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-fromjson-always-returning-null/m-p/55092#M419</guid>
      <dc:creator>danielconrad</dc:creator>
      <dc:date>2012-01-03T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.fromJson() always returning null.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-fromjson-always-returning-null/m-p/55093#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This looks like a bug. A workaround would be to call Parser.NextToken() before making the Graphic.FromJSON() call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Archana&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 20:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-fromjson-always-returning-null/m-p/55093#M420</guid>
      <dc:creator>ArchanaAgarwal</dc:creator>
      <dc:date>2012-01-03T20:00:00Z</dc:date>
    </item>
  </channel>
</rss>

