JSON.encode of ESRI objects

451
1
09-23-2010 06:11 AM
PatrickDoody
New Contributor II
I am trying to use the JSON.encode method to create JSON for Flex objects. I can encode a Graphic or an Extent properly, but when I try to JSON.encode(Layer) that will not work. What makes objects like Extent/Graphic/Geometry work correctly with JSON.encode, but not Layer?

Thanks
Tags (2)
0 Kudos
1 Reply
ConorO_Neill
New Contributor
I am trying to use the JSON.encode method to create JSON for Flex objects. I can encode a Graphic or an Extent properly, but when I try to JSON.encode(Layer) that will not work. What makes objects like Extent/Graphic/Geometry work correctly with JSON.encode, but not Layer?

Thanks


I can't get layers to encode either.  Anybody have a solution?
0 Kudos