Types
import type { JSONSupportMixin } from "@arcgis/core/core/JSONSupport.js";
Subclasses
Graphic, Graphic, Basemap, Camera, Camera, Ground, PopupTemplate, PopupTemplate, Viewpoint, Viewpoint, Analysis, DimensionSimpleStyle, LengthDimension, LineOfSightAnalysisObserver, LineOfSightAnalysisTarget, SlicePlane, SlicePlane, Viewshed, VolumeMeasurementCutFillOptions, VolumeMeasurementDisplayUnits, VolumeMeasurementInputUnits, SharedTemplateMetadata, SharedTemplateMetadata, FocusArea, FocusAreaOutline, FocusAreaOutline, FocusAreas, ExpressionInfo, ExpressionInfo, FormTemplate, FormTemplate, Element, Element, Input, Input, Geometry, Geometry, HeightModelInfo, HeightModelInfo, SpatialReference, SpatialReference, GeographicTransformation, GeographicTransformation, GeographicTransformationStep, GeographicTransformationStep, MeshComponent, MeshComponent, MeshGeoreferencedVertexSpace, MeshGeoreferencedVertexSpace, MeshLocalVertexSpace, MeshLocalVertexSpace, MeshMaterial, MeshMaterial, MeshTexture, MeshTexture, MeshTextureTransform, MeshTextureTransform, MeshTransform, MeshTransform, MeshVertexAttributes, MeshVertexAttributes, NavigationConstraint, NavigationConstraint, OAuthInfo, OAuthInfo, ServerInfo, ServerInfo, ElevationSourceDefinitions, ElevationSourceDefinitions, PointCloudFilter, PointCloudFilter, AggregateField, AggregateField, BuildingFieldStatistics, BuildingFieldStatistics, BuildingFilter, BuildingFilter, BuildingFilterBlock, BuildingFilterBlock, BuildingFilterMode, BuildingFilterMode, BuildingSummaryStatistics, BuildingSummaryStatistics, CodedValue, CodedValue, Domain, Domain, ControlPointsGeoreference, FieldFormat, FieldFormat, DimensionalDefinition, DimensionalDefinition, DisplayFilter, DisplayFilter, DisplayFilterInfo, DisplayFilterInfo, EditFieldsInfo, EditFieldsInfo, ExpressionInfo, ExpressionInfo, FacilityLayerInfo, FacilityLayerInfo, FeatureEffect, FeatureEffect, FeatureFilter, FeatureFilter, FeatureReductionBinning, FeatureReductionCluster, FeatureReductionSelection, FeatureReductionSelection, FeatureTemplate, FeatureTemplate, FeatureType, FeatureType, Field, Field, FieldConfiguration, FieldConfiguration, GeometryFieldsInfo, GeometryFieldsInfo, KMLMapImage, KMLMapImage, KMLSublayer, LOD, LOD, LabelClass, LabelClass, LabelExpressionInfo, LabelExpressionInfo, LayerFloorInfo, LayerFloorInfo, LevelLayerInfo, LevelLayerInfo, MapImage, MapImage, MosaicRule, MosaicRule, MultidimensionalSubset, MultidimensionalSubset, OrderByInfo, OrderByInfo, ParquetGeometryEncodingLocation, ParquetGeometryEncodingLocation, ParquetGeometryEncodingWkb, ParquetGeometryEncodingWkb, PixelBlock, PixelBlock, PlaybackInfo, PlaybackInfo, PurgeOptions, PurgeOptions, RasterBandInfo, RasterBandInfo, RasterFunction, RasterFunction, RasterInfo, RasterInfo, RasterSensorInfo, RasterSensorInfo, Relationship, Relationship, RouteStopSymbols, RouteStopSymbols, RouteSymbols, RouteSymbols, SceneFilter, SceneFilter, SceneModification, SceneModification, SceneModifications, SiteLayerInfo, SiteLayerInfo, Subtype, Subtype, TelemetryData, TelemetryData, TelemetryDisplay, TelemetryDisplay, TileInfo, TileInfo, TileMatrixSet, TileMatrixSet, TimeInfo, TimeInfo, TrackInfo, TrackInfo, TrackPartInfo, TrackPartInfo, VideoTimeExtent, VideoTimeExtent, WMTSStyle, WMTSStyle, WMTSSublayer, WMTSSublayer, VoxelColorStop, VoxelColorStop, VoxelDynamicSection, VoxelDynamicSection, VoxelFormat, VoxelFormat, VoxelIsosurface, VoxelIsosurface, VoxelOpacityStop, VoxelOpacityStop, VoxelRangeFilter, VoxelRangeFilter, VoxelSlice, VoxelSlice, VoxelTransferFunctionStyle, VoxelTransferFunctionStyle, VoxelUniqueValue, VoxelUniqueValue, VoxelVariable, VoxelVariable, VoxelVariableStyle, VoxelVariableStyle, VoxelVolume, VoxelVolume, VoxelVolumeStyle, VoxelVolumeStyle, ChronologicalLayoutSettings, ChronologicalLayoutSettings, LayoutSettings, LayoutSettings, NonspatialDataDisplay, NonspatialDataDisplay, OrganicLayoutSettings, OrganicLayoutSettings, CircuitManager, CircuitManager, UnitIdentifierManager, UnitIdentifierManager, Circuit, Circuit, CircuitLocation, CircuitLocation, CircuitPath, CircuitPath, CircuitPathConnectivityElement, CircuitPathConnectivityElement, CircuitSection, CircuitSection, Subcircuit, Subcircuit, Terminal, Terminal, TerminalConfiguration, TerminalConfiguration, ValidateNetworkTopologyResult, ValidateNetworkTopologyResult, TraceConfiguration, TraceConfiguration, TraceResult, TraceResult, ElementExpressionInfo, ElementExpressionInfo, ExpressionInfo, ExpressionInfo, FieldInfo, FieldInfo, LayerOptions, LayerOptions, RelatedRecordsInfo, RelatedRecordsInfo, Content, Content, MediaInfo, MediaInfo, ChartMediaInfoValue, ChartMediaInfoValue, ImageMediaInfoValue, ImageMediaInfoValue, AttachmentsOrderByInfo, AttachmentsOrderByInfo, FieldInfoFormat, FieldInfoFormat, RelatedRecordsInfoFieldOrder, RelatedRecordsInfoFieldOrder, UtilityNetworkAssociationType, UtilityNetworkAssociationType, Portal, PortalFolder, PortalFolder, PortalGroup, PortalGroup, PortalItem, PortalUser, PortalUser, Renderer, Renderer, FlowRenderer, FlowRenderer, PointCloudRenderer, PointCloudRenderer, RasterColormapRenderer, RasterColormapRenderer, RasterShadedReliefRenderer, RasterShadedReliefRenderer, RasterStretchRenderer, RasterStretchRenderer, VectorFieldRenderer, VectorFieldRenderer, AttributeColorInfo, AttributeColorInfo, AuthoringInfo, AuthoringInfo, AuthoringInfoClassBreakInfo, AuthoringInfoClassBreakInfo, AuthoringInfoFieldInfo, AuthoringInfoFieldInfo, AuthoringInfoVisualVariable, AuthoringInfoVisualVariable, ClassBreakInfo, ClassBreakInfo, ColormapInfo, ColormapInfo, DotDensityLegendOptions, DotDensityLegendOptions, HeatmapColorStop, HeatmapColorStop, HeatmapLegendOptions, HeatmapLegendOptions, OthersCategory, OthersCategory, RasterPresetRenderer, RasterPresetRenderer, RendererLegendOptions, RendererLegendOptions, UniqueValue, UniqueValue, UniqueValueClass, UniqueValueClass, UniqueValueGroup, UniqueValueGroup, UniqueValueInfo, UniqueValueInfo, ColorClassBreakInfo, ColorClassBreakInfo, ColorModulation, ColorModulation, ColorUniqueValueInfo, ColorUniqueValueInfo, PointSizeAlgorithm, PointSizeAlgorithm, VisualVariable, VisualVariable, ColorSizeStop, ColorSizeStop, ColorStop, ColorStop, OpacityStop, OpacityStop, SizeStop, SizeStop, VisualVariableLegendOptions, VisualVariableLegendOptions, FeatureService, DataModel, DataModel, GraphObject, GraphObject, GraphObjectType, GraphObjectType, FieldIndex, FieldIndex, GraphProperty, GraphProperty, KnowledgeGraph, KnowledgeGraph, Path, Path, ServiceDefinition, ServiceDefinition, SourceTypeValueBehavior, SourceTypeValueBehavior, CIMFilteredFindPathsConfiguration, CIMFilteredFindPathsConfiguration, CIMFilteredFindPathsEntity, CIMFilteredFindPathsEntity, CIMFilteredFindPathsPathFilter, CIMFilteredFindPathsPathFilter, CIMKGTraversalDirection, CIMKGTraversalDirection, DynamicDataLayer, DynamicDataLayer, DynamicMapLayer, DynamicMapLayer, JoinTableDataSource, JoinTableDataSource, QueryTableDataSource, QueryTableDataSource, RasterDataSource, RasterDataSource, TableDataSource, TableDataSource, CircuitTraceResult, CircuitTraceResult, CircuitVerifyResult, CircuitVerifyResult, ExportCircuitsParameters, ExportCircuitsParameters, QueryCircuitsParameters, QueryCircuitsParameters, VerifyCircuitsParameters, VerifyCircuitsParameters, AggregatedGeometry, AggregatedGeometry, Association, Association, AssociationGeometriesResult, AssociationGeometriesResult, FunctionResult, FunctionResult, NetworkElement, NetworkElement, QueryAssociationsParameters, QueryAssociationsParameters, QueryAssociationsResult, QueryAssociationsResult, QueryNamedTraceConfigurationsParameters, QueryNamedTraceConfigurationsParameters, SynthesizeAssociationGeometriesParameters, SynthesizeAssociationGeometriesParameters, TraceLocation, TraceLocation, TraceParameters, TraceParameters, ValidateNetworkTopologyParameters, ValidateNetworkTopologyParameters, UnitQueryResult, UnitQueryResult, AttachmentInfo, AttachmentInfo, AddressCandidate, AddressCandidate, AddressToLocationsParameters, AddressToLocationsParameters, AddressesToLocationsParameters, AddressesToLocationsParameters, ColorRamp, ColorRamp, ArealUnit, ArealUnit, AreasAndLengthsParameters, AreasAndLengthsParameters, AttachmentQuery, AttachmentQuery, FeatureSet, FeatureSet, AttributeBinsGrouping, AttributeBinsGrouping, AttributeBinsQuery, AttributeBinsQuery, BinParametersBase, BinParametersBase, BaseImageMeasureParameters, BaseImageMeasureParameters, BaseImageMeasureResult, BaseImageMeasureResult, BaseImageMeasureResultValue, BaseImageMeasureResultValue, BufferParameters, BufferParameters, CameraInfo, CameraInfo, ClosestFacilityParameters, ClosestFacilityParameters, ClosestFacilitySolveResult, ClosestFacilitySolveResult, DataFile, DataFile, DataLayer, DataLayer, DateBinTimeInterval, DateBinTimeInterval, DensifyParameters, DensifyParameters, DirectionLine, DirectionLine, DirectionPoint, DirectionPoint, DirectionsEvent, DirectionsEvent, DirectionsString, DirectionsString, FindImagesParameters, FindImagesParameters, FindImagesResult, FindImagesResult, FindParameters, FindParameters, FindResult, FindResult, GPMessage, GPMessage, GeneralizeParameters, GeneralizeParameters, IdentifyParameters, IdentifyParameters, IdentifyResult, IdentifyResult, ImageAngleParameters, ImageAngleParameters, ImageAngleResult, ImageAngleResult, ImageBoundaryParameters, ImageBoundaryParameters, ImageBoundaryResult, ImageBoundaryResult, ImageGPSInfo, ImageGPSInfo, ImageGPSInfoParameters, ImageGPSInfoParameters, ImageGPSInfoResult, ImageGPSInfoResult, ImageHistogramParameters, ImageHistogramParameters, ImageIdentifyParameters, ImageIdentifyParameters, ImageIdentifyResult, ImageIdentifyResult, ImageInspectionInfo, ImageInspectionInfo, ImagePixelLocationParameters, ImagePixelLocationParameters, ImagePixelLocationResult, ImagePixelLocationResult, ImageSample, ImageSample, ImageSampleParameters, ImageSampleParameters, ImageSampleResult, ImageSampleResult, ImageToMapMultirayParameters, ImageToMapMultirayParameters, ImageToMapParameters, ImageToMapParameters, ImageUrlParameters, ImageUrlParameters, ImageUrlResult, ImageUrlResult, ImageVolume, ImageVolume, ImageVolumeParameters, ImageVolumeParameters, ImageVolumeResult, ImageVolumeResult, JobInfo, JobInfo, LastMileDeliveryParameters, LastMileDeliveryParameters, LegendLayer, LegendLayer, LengthsParameters, LengthsParameters, LinearUnit, LinearUnit, LocateSettingBase, LocateSettingBase, LocateSettingSource, LocateSettingSource, LocateSettings, LocateSettings, LocateSettingsOverrides, LocateSettingsOverrides, LocationToAddressParameters, LocationToAddressParameters, MapToImageParameters, MapToImageParameters, MeasureAreaFromImageResult, MeasureAreaFromImageResult, MeasureFromImageParameters, MeasureFromImageParameters, MeasureLengthFromImageResult, MeasureLengthFromImageResult, NetworkAttribute, NetworkAttribute, NetworkServiceDescription, NetworkServiceDescription, NetworkUrl, NetworkUrl, OffsetParameters, OffsetParameters, ParameterValue, ParameterValue, PointBarrier, PointBarrier, PolygonBarrier, PolygonBarrier, PolylineBarrier, PolylineBarrier, ProjectParameters, ProjectParameters, QuantizationParameters, QuantizationParameters, Query, Query, RasterData, RasterData, RelationParameters, RelationParameters, RelationshipQuery, RelationshipQuery, RouteInfo, RouteInfo, RouteParameters, RouteParameters, RouteResult, RouteResult, RouteSolveResult, RouteSolveResult, ServiceAreaParameters, ServiceAreaParameters, ServiceAreaSolveResult, ServiceAreaSolveResult, StatisticDefinition, StatisticDefinition, Stop, Stop, SuggestLocationsParameters, SuggestLocationsParameters, SuggestionCandidate, SuggestionCandidate, TimeUnit, TimeUnit, TopFeaturesQuery, TopFeaturesQuery, TopFilter, TopFilter, TravelMode, TravelMode, TrimExtendParameters, TrimExtendParameters, AlterVersionParameters, AlterVersionParameters, PostResult, PostResult, ReconcileParameters, ReconcileParameters, ReconcileResult, ReconcileResult, CreateVersionParameters, CreateVersionParameters, GetVersionInfosParameters, GetVersionInfosParameters, MapFloorInfo, MapFloorInfo, Symbol, Symbol, Symbol3DLayer, Symbol3DLayer, Font, Font, LineStyleMarker3D, LineStyleMarker3D, LineSymbolMarker, LineSymbolMarker, Callout3D, Callout3D, LineCallout3DBorder, LineCallout3DBorder, Edges3D, Edges3D, LinePattern3D, LinePattern3D, Pattern3D, Pattern3D, ElevationInfo, ElevationInfo, FeatureExpressionInfo, FeatureExpressionInfo, IconSymbol3DLayerResource, IconSymbol3DLayerResource, ObjectSymbol3DLayerResource, ObjectSymbol3DLayerResource, OccludedVisibility, OccludedVisibility, Symbol3DEmissive, Symbol3DEmissive, Symbol3DMaterial, Symbol3DMaterial, Symbol3DHalo, Symbol3DHalo, Symbol3DIconOutline, Symbol3DIconOutline, Symbol3DOutline, Symbol3DOutline, Symbol3DTextBackground, Symbol3DTextBackground, Symbol3DVerticalOffset, Symbol3DVerticalOffset, AttributeTableTemplate, AttributeTableTemplate, AttributeTableElement, AttributeTableElement, FieldOrder, FieldOrder, TimeExtent, TimeExtent, TimeInterval, TimeInterval, VersionManagementService, VersioningState, ViewState, ViewState, CloudyWeather, CloudyWeather, Environment, Environment, FoggyWeather, FoggyWeather, RainyWeather, RainyWeather, SnowyWeather, SnowyWeather, SunLighting, SunLighting, SunnyWeather, SunnyWeather, VirtualLighting, VirtualLighting, GeotriggersInfo, GeotriggersInfo, IPSInfo, IPSInfo, Widgets, Widgets, Search, Search, SearchLayer, SearchLayer, SearchLayerField, SearchLayerField, SearchTable, SearchTable, SearchTableField, SearchTableField, Viewing, Viewing, DeviceLocationFeed, DeviceLocationFeed, ExpressionInfo, ExpressionInfo, FeatureFenceParameters, FeatureFenceParameters, FeatureFilter, FeatureFilter, FeatureLayerSource, FeatureLayerSource, Geotrigger, Geotrigger, GeotriggerNotificationOptions, GeotriggerNotificationOptions, AppleIPSProperties, AppleIPSProperties, Configuration, Configuration, GNSSProperties, GNSSProperties, PathSnappingProperties, PathSnappingProperties, PositioningService, PositioningService, SmoothingProperties, SmoothingProperties, SlideThumbnail, SlideThumbnail, FloorFilter, FloorFilter, TimeSlider, TimeSlider, ApplicationProperties, ApplicationProperties, Bookmark, Bookmark, ColorBackground, ColorBackground, ApplicationProperties, ApplicationProperties, Glow, Glow, InitialViewProperties, InitialViewProperties, Presentation, Presentation, Slide, Slide, SlideLegendInfo, SlideLegendInfo, Background, Background, Description, Description, FeatureReference, FeatureReference, FeatureReferenceId, FeatureReferenceId, LayerReference, LayerReference, SlideElements, SlideElements, SlideEnvironment, SlideEnvironment, SlideGround, SlideGround, SlidePopupInfo, SlidePopupInfo, SlideVisibleLayer, SlideVisibleLayer, Title, Title, ColumnTemplateBase, ColumnTemplateBase, TableTemplate, TableTemplate, CustomTemplate, CustomTemplate, LayoutOptions, LayoutOptions, LayoutTemplateInfo, LayoutTemplateInfo, MapSurroundInfoBase, MapSurroundInfoBase, SearchSource, SearchSource
Since
ArcGIS Maps SDK for JavaScript 4.0

JSONSupport provides an Accessor subclass, which offers the capability of hydrating objects from a JSON object.

It includes support methods for working with JSON.

Methods

MethodSignatureClass
static
fromJSON(json: any): any
toJSON(): any

fromJSON

static Method
Signature
fromJSON (json: any): any

Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product. The object passed into the input json parameter often comes from a response to a query operation in the REST API or a toJSON() method from another ArcGIS product. See the Using fromJSON() topic in the Guide for details and examples of when and how to use this function.

Parameters

ParameterTypeDescriptionRequired
json
any

A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects.

Returns
any

Returns a new instance of this class.

toJSON

Method
Signature
toJSON (): any

Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.

Returns
any

The ArcGIS portal JSON representation of an instance of this class.

Type definitions

JSONSupport

Type definition
Supertypes
default ‚  JSONSupportMixin