AnsweredAssumed Answered

Graphic.fromJson() always returning null.

Question asked by daconrad on Jan 3, 2012
Latest reply on Jan 3, 2012 by aagarwal-esristaff
Hello,

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.  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. 

I have updated to the new version of the sdk and now Graphic.fromJson() always returns null for the same response from the SOE.  I have even created some simple json strings that contain attributes and geometry and I receive null for them also.

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.

Are there other required values that need to be in the json for a graphic other than attributes and geometry?

Thanks.

Outcomes