Package com.esri.arcgisruntime.io
Interface JsonSerializable
-
- All Known Implementing Classes:
ArcadeExpression
,ArcGISMap
,ArcGISMapServiceInfo
,ArcGISMapServiceSublayerInfo
,Basemap
,ClassBreaksRenderer
,ClassBreaksRenderer.ClassBreak
,CodedValueDomain
,CompositeSymbol
,DictionaryRenderer
,DistanceCompositeSceneSymbol
,Domain
,DownloadPreplannedOfflineMapJob
,Envelope
,EstimateTileCacheSizeJob
,ExportTileCacheJob
,ExportVectorTilesJob
,FacilityLayerDefinition
,FeatureCollection
,FillSymbol
,GenerateGeodatabaseJob
,GenerateOfflineMapJob
,Geometry
,GeoModelFloorDefinition
,GeoprocessingJob
,HeatmapRenderer
,HelperServices
,InheritedDomain
,Job
,LabelAngle
,LabelDefinition
,LabelStackSeparator
,LayerFloorDefinition
,LevelLayerDefinition
,LicenseInfo
,LineSymbol
,MarkerSceneSymbol
,MarkerSymbol
,ModelSceneSymbol
,MultilayerPointSymbol
,MultilayerPolygonSymbol
,MultilayerPolylineSymbol
,MultilayerSymbol
,Multipart
,Multipoint
,OfflineMapSyncJob
,PictureFillSymbol
,PictureMarkerSymbol
,Point
,Polygon
,Polyline
,PortalGroup
,PortalInfo
,PortalItem
,PortalUser
,RangeDomain
,Renderer
,SceneSymbol
,SimpleFillSymbol
,SimpleLineSymbol
,SimpleMarkerSceneSymbol
,SimpleMarkerSymbol
,SimpleRenderer
,SiteLayerDefinition
,SpatialReference
,Symbol
,SyncGeodatabaseJob
,TextSymbol
,UniqueValueRenderer
,UniqueValueRenderer.UniqueValue
,UnsupportedRenderer
,Viewpoint
public interface JsonSerializable
Implemented by classes that can be serialized to and from JSON. These classes also implement a static factory method as follows:ImplementingClass ImplementingClass.fromJson(String json);
- Since:
- 100.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getUnknownJson()
If this object was created from JSON, this method gets unknown data from the source JSON.java.util.Map<java.lang.String,java.lang.Object>
getUnsupportedJson()
If this object was created from JSON, this method gets unsupported data from the source JSON.java.lang.String
toJson()
Serializes this object to a JSON string.
-
-
-
Method Detail
-
toJson
java.lang.String toJson()
Serializes this object to a JSON string. Note that unknown JSON is omitted from the serialized string.- Returns:
- a JSON string
- Since:
- 100.0.0
-
getUnknownJson
java.util.Map<java.lang.String,java.lang.Object> getUnknownJson()
If this object was created from JSON, this method gets unknown data from the source JSON. Unknown JSON is a Map of values that were in the source JSON but are not known by the Runtime and therefore not exposed in the API.- Returns:
- an unmodifiable Map containing unknown JSON data. The keys are Strings containing names. The types of
the values depend on the types of tokens within the JSON as follows:
- a
Map<String, Object>
represents an object in the JSON - a
List<Object>
represents an array in the JSON - a
String
represents a string in the JSON - a
Double
represents a number in the JSON - a
Boolean
represents true or false in the JSON null
represents null in the JSON
- a
- Since:
- 100.0.0
-
getUnsupportedJson
java.util.Map<java.lang.String,java.lang.Object> getUnsupportedJson()
If this object was created from JSON, this method gets unsupported data from the source JSON. Unsupported JSON is a Map of values that are supported by webmaps and known to the version of the webmap specification the API supports (see system requirements), but are not explicitly exposed through the Runtime API.- Returns:
- an unmodifiable Map containing unsupported JSON data. The keys are Strings containing names. The types of
the values depend on the types of tokens within the JSON as follows:
- a
Map<String, Object>
represents an object in the JSON - a
List<Object>
represents an array in the JSON - a
String
represents a string in the JSON - a
Double
represents a number in the JSON - a
Boolean
represents true or false in the JSON null
represents null in the JSON
- a
- Since:
- 100.0.0
-
-