IJSONConverterGdb Interface

Provides high-level deserialization methods for JSON.

Members

Name Description
Method QueryJSONDomain Query domain info from IDomain and populate IJSONObject.
Method QueryJSONDomain2 Query domain info from IDomain and populate IJSONObject. If returnDomainNames is true, it returns only domain name.
Method QueryJSONDomain3 Query domain info from IDomain and populate IJSONObject.If fieldDomain is equal to typeDomain, it returns the domain as inherited.
Method QuerySubtype Query subtype info from subtype and populate IJSONObject.
Method ReadRecordSet Reads RecordSet object from IJSONReader.
Method ToRecordSet 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.
Method WriteRecordSet 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.

IJSONConverterGdb.QueryJSONDomain Method

Query domain info from IDomain and populate IJSONObject.

Public Sub QueryJSONDomain ( _
    ByVal pDomain As IDomain, _
    ByVal pDomainJO As IJSONObject _
)
public void QueryJSONDomain (
    IDomain pDomain,
    IJSONObject pDomainJO
);

IJSONConverterGdb.QueryJSONDomain2 Method

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

Public Sub QueryJSONDomain2 ( _
    ByVal Domain As IDomain, _
    ByVal returnDomainNames As Boolean, _
    ByVal domainJO As IJSONObject _
)
public void QueryJSONDomain2 (
    IDomain Domain,
    bool returnDomainNames,
    IJSONObject domainJO
);

IJSONConverterGdb.QueryJSONDomain3 Method

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

Public Sub QueryJSONDomain3 ( _
    ByVal typeDomain As IDomain, _
    ByVal fieldDomain As IDomain, _
    ByVal returnDomainNames As Boolean, _
    ByVal domainJO As IJSONObject _
)
public void QueryJSONDomain3 (
    IDomain typeDomain,
    IDomain fieldDomain,
    bool returnDomainNames,
    IJSONObject domainJO
);

IJSONConverterGdb.QuerySubtype Method

Query subtype info from subtype and populate IJSONObject.

Public Sub QuerySubtype ( _
    ByVal Subtypes As ISubtypes, _
    ByVal SubtypeCode As Integer, _
    ByVal SubtypeName As String, _
    ByVal Fields As IFields, _
    ByVal returnDomainNames As Boolean, _
    ByVal subtypeJO As IJSONObject _
)
public void QuerySubtype (
    ISubtypes Subtypes,
    int SubtypeCode,
    string SubtypeName,
    IFields Fields,
    bool returnDomainNames,
    IJSONObject subtypeJO
);

IJSONConverterGdb.ReadRecordSet Method

Reads RecordSet object from IJSONReader.

Public Sub ReadRecordSet ( _
    ByVal pReader As IJSONReader, _
    ByVal pDefaultSchema As IFields, _
    ByVal pConversionProps As IPropertySet, _
    ByRef ppRecordset As IRecordSet, _
    ByRef ppOriginalToNewFieldMap As IPropertySet _
)
public void ReadRecordSet (
    IJSONReader pReader,
    IFields pDefaultSchema,
    IPropertySet pConversionProps,
    ref IRecordSet ppRecordset,
    ref IPropertySet ppOriginalToNewFieldMap
);

IJSONConverterGdb.ToRecordSet Method

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.

Public Sub ToRecordSet ( _
    ByVal pObj As IJSONObject, _
    ByVal pDefaultSchema As IFields, _
    ByVal pConversionProps As IPropertySet, _
    ByRef ppRecordset As IRecordSet, _
    ByRef ppOriginalToNewFieldMap As IPropertySet _
)
public void ToRecordSet (
    IJSONObject pObj,
    IFields pDefaultSchema,
    IPropertySet pConversionProps,
    ref IRecordSet ppRecordset,
    ref IPropertySet ppOriginalToNewFieldMap
);

IJSONConverterGdb.WriteRecordSet Method

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.

Public Sub WriteRecordSet ( _
    ByVal pWriter As IJSONWriter, _
    ByVal pGeomConv As IJSONConverterGeometry, _
    ByVal pProps As IPropertySet, _
    ByVal propname As String, _
    ByVal pRecordset As IRecordSet, _
    ByVal pGeomOpt As IGeometryResultOptions, _
    ByVal bWriteEndOfObj As Boolean _
)
public void WriteRecordSet (
    IJSONWriter pWriter,
    IJSONConverterGeometry pGeomConv,
    IPropertySet pProps,
    string propname,
    IRecordSet pRecordset,
    IGeometryResultOptions pGeomOpt,
    bool bWriteEndOfObj
);

Classes that implement IJSONConverterGdb

Classes Description
JSONConverterGdb All-in-one JSON conversion for the GeoDatabase library. Supports all previous JSON interfaces in the GeoDatabase, namely IJSONSerializer, IJSONDeserializer, IExternalSerializerGdb, IExternalDeserializerGdb

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.