Parser Result#

Defined in framework ScanditDataParser

SDCParsedData#
@interface SDCParsedData : NSObject

Added in version 6.1.0

Holds the result of a successfully parsed data string or raw data. Instances of this class are returned by SDCParser.parseString:error: and SDCParser.parseRawData:error: methods. The parsed data is divided into fields, each identified by a name.

The data contained in this result object can be accessed in one of the following ways:

  • Through an array of parser fields (see fields).

  • Through a dictionary that maps field names to the field (see fieldsByName).

  • Directly as a JSON string (see jsonString).

jsonString#
@property (nonatomic, nonnull, readonly) NSString *jsonString

Added in version 6.1.0

The result object as a serialized JSON string.

fieldsByName#
@property (nonatomic, nonnull, readonly) NSDictionary<NSString *, SDCParsedField *> *fieldsByName

Added in version 6.1.0

Provides by-name lookup of the fields. The field names are data format specific. Consult the data format documentation for information on available fields.

fields#
@property (nonatomic, nonnull, readonly) NSArray<SDCParsedField *> *fields

Added in version 6.1.0

The order of the fields matches the order in the original data string. The fields are data format specific. Consult the data format documentation for information on available fields.