Packagecom.esri.ags.utils
Interfacepublic interface IJSONSupport
Implementors AlgorithmicColorRamp, AttributeParameterValue, ClassBreaksDefinition, ClassBreaksRenderer, DataFile, FeatureSet, Geometry, Graphic, JoinDataSource, LabelClass, LabelOptions, LayerDataSource, LayerDrawingOptions, LayerMapSource, LayerTimeOptions, LayoutOptions, LegendOptions, MosaicRule, MultipartColorRamp, PictureFillSymbol, PictureMarkerSymbol, PrintParameters, QueryDataSource, RasterData, RasterDataSource, RasterFunction, SimpleFillSymbol, SimpleLineSymbol, SimpleMarkerSymbol, SimpleRenderer, SpatialReference, TableDataSource, TimeClassBreaksAger, TimeExtent, TimeRampAger, UniqueValueDefinition, UniqueValueInfo, UniqueValueRenderer

Since : ArcGIS API 3.0 for Flex

IJSONSupport is implemented by classes that wish to return a custom JSON object. The JSONUtil.encode() method will call toJSON() instead of simply encoding all of the class properties.

See also

JSONUtil.encode()


Public Methods
 MethodDefined By
  
toJSON(key:String = null):Object
Convert the class to a JSON object.
IJSONSupport
Method Detail
toJSON()method
public function toJSON(key:String = null):Object

Convert the class to a JSON object.

Parameters

key:String (default = null) — Unused but required for compatibility with JSON.stringify().

Returns
Object — JSON object