Interface IJSONConverterGdb

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides high-level deserialization methods for JSON.

[Guid("F28D230E-0F29-4022-B84F-E7E955A9A873")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IJSONConverterGdb

Methods

QueryJSONDomain(IDomain, IJSONObject)

Query domain info from IDomain and populate IJSONObject.

void QueryJSONDomain(IDomain pDomain, IJSONObject pDomainJO)

Parameters

pDomain IDomain
pDomainJO IJSONObject

QueryJSONDomain2(IDomain, bool, IJSONObject)

Query domain info from IDomain and populate IJSONObject. If returnDomainNames is true, it returns only domain name.

void QueryJSONDomain2(IDomain Domain, bool returnDomainNames, IJSONObject domainJO)

Parameters

Domain IDomain
returnDomainNames bool
domainJO IJSONObject

QueryJSONDomain3(IDomain, IDomain, bool, IJSONObject)

Query domain info from IDomain and populate IJSONObject.If fieldDomain is equal to typeDomain, it returns the domain as inherited.

void QueryJSONDomain3(IDomain typeDomain, IDomain fieldDomain, bool returnDomainNames, IJSONObject domainJO)

Parameters

typeDomain IDomain
fieldDomain IDomain
returnDomainNames bool
domainJO IJSONObject

QuerySubtype(ISubtypes, int, string, IFields, bool, IJSONObject)

Query subtype info from subtype and populate IJSONObject.

void QuerySubtype(ISubtypes Subtypes, int SubtypeCode, string SubtypeName, IFields Fields, bool returnDomainNames, IJSONObject subtypeJO)

Parameters

Subtypes ISubtypes
SubtypeCode int
SubtypeName string
Fields IFields
returnDomainNames bool
subtypeJO IJSONObject

ReadRecordSet(IJSONReader, IFields, IPropertySet, out IRecordSet, out IPropertySet)

Reads RecordSet object from IJSONReader.

void ReadRecordSet(IJSONReader pReader, IFields pDefaultSchema, IPropertySet pConversionProps, out IRecordSet ppRecordset, out IPropertySet ppOriginalToNewFieldMap)

Parameters

pReader IJSONReader
pDefaultSchema IFields
pConversionProps IPropertySet
ppRecordset IRecordSet
ppOriginalToNewFieldMap IPropertySet

ToRecordSet(IJSONObject, IFields, IPropertySet, out IRecordSet, out IPropertySet)

Reads RecordSet object from IJSONObject. pDefaultSchema is used only when input JSON has no 'fields' attribute. Pass NULL if not needed. Also, sometimes field names are corrected by the GeoDatabase, use ppOriginalToNewFieldMap to find new field names.

void ToRecordSet(IJSONObject pObj, IFields pDefaultSchema, IPropertySet pConversionProps, out IRecordSet ppRecordset, out IPropertySet ppOriginalToNewFieldMap)

Parameters

pObj IJSONObject
pDefaultSchema IFields
pConversionProps IPropertySet
ppRecordset IRecordSet
ppOriginalToNewFieldMap IPropertySet

WriteRecordSet(IJSONWriter, IJSONConverterGeometry, IPropertySet, string, IRecordSet, IGeometryResultOptions, bool)

Writes RecordSet to IJSONWriter. Writes closing bracked if bWriteEndOfObj is VARIANT_TRUE. Set bWriteEndOfObj to VARIANT_FALSE if you want to append additional JSON before closing object.

void WriteRecordSet(IJSONWriter pWriter, IJSONConverterGeometry pGeomConv, IPropertySet pProps, string propname, IRecordSet pRecordset, IGeometryResultOptions pGeomOpt, bool bWriteEndOfObj)

Parameters

pWriter IJSONWriter
pGeomConv IJSONConverterGeometry
pProps IPropertySet
propname string
pRecordset IRecordSet
pGeomOpt IGeometryResultOptions
bWriteEndOfObj bool