Parser Result
Defined under the namespace Scandit.Datacapture.Parser
- ParsedData
class ParsedData
Added in version 6.5.0
Holds the result of a successfully parsed data string or raw data. Instances of this class are returned by Parser.parseString() and Parser.parseRawData() 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
get jsonString(): string
Added in version 6.5.0
The result object as a serialized JSON string.
- fieldsByName
get fieldsByName(): object<string, ParsedField>
Added in version 6.5.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
get fields(): ParsedField[]
Added in version 6.5.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.
- fieldsWithIssues
get fieldsWithIssues(): ParsedField[]
Added in version 6.26.0
Like fields, but only returns fields with issues