ParserResult Interface Reference

Properties

string JsonString [get]
 
NSDictionary< NSString,
ParserField
FieldsByName [get]
 
NSArray< ParserFieldFields [get]
 

Detailed Description

The SPLParserResult holds the result of a successfully parsed data string.

The result is a collection of fields that can either be accessed as an sequential array (fieldsArray), or a dictionary (fieldsDict) which maps field name onto values.

Property Documentation

string JsonString
get

The JSON string of the result content.

Since
5.5.0
NSDictionary<NSString, ParserField> FieldsByName
get

Dictionary of SPLField objects with key being the field name.

Since
5.5.0
NSArray<ParserField> Fields
get

Array of SPLField objects with key being the field name.

Use this accessor if the order of the fields in the string matter, if you are only interested in a particular field, using the SPLField.fieldsDict is simpler.

Since
5.5.0