# array Source: https://www.nianticspatial.com/docs/api/swift/NSDK.Nsdk_Vps_GeolocationTransition.method-array/ array --- ## Declaration static func array(fromJSONString jsonString: String, options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] #### Summary Creates a new array of messages by decoding the given string containing a serialized array of messages in JSON format. #### Throws SwiftProtobufError or JSONDecodingError if decoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | jsonString | String | The JSON-formatted string to decode. | | options | JSONDecodingOptions | The JSONDecodingOptions to use. | --- ## Overload 1 static func array(fromJSONUTF8Bytes jsonUTF8Bytes: Bytes, options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] where Bytes : SwiftProtobufContiguousBytes #### Summary Creates a new array of messages by decoding the given SwiftProtobufContiguousBytes containing a serialized array of messages in JSON format, interpreting the data as UTF-8 encoded text. #### Throws SwiftProtobufError or JSONDecodingError if decoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | jsonUTF8Bytes | Bytes | The JSON-formatted data to decode, represented as UTF-8 encoded text. | | options | JSONDecodingOptions | The JSONDecodingOptions to use. | --- ## Overload 2 static func array(fromJSONUTF8Data jsonUTF8Data: Data, options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] #### Summary Creates a new array of messages by decoding the given Data containing a serialized array of messages in JSON format, interpreting the data as UTF-8 encoded text. #### Throws SwiftProtobufError or JSONDecodingError if decoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | jsonUTF8Data | Data | The JSON-formatted data to decode, represented as UTF-8 encoded text. | | options | JSONDecodingOptions | The JSONDecodingOptions to use. | --- ## Overload 3 static func array(fromJSONString jsonString: String, extensions: any ExtensionMap = SimpleExtensionMap(), options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] #### Summary Creates a new array of messages by decoding the given string containing a serialized array of messages in JSON format. #### Throws SwiftProtobufError or JSONDecodingError if decoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | jsonString | String | The JSON-formatted string to decode. | | extensions | any ExtensionMap | The extension map to use with this decode | | options | JSONDecodingOptions | The JSONDecodingOptions to use. | --- ## Overload 4 static func array(fromJSONUTF8Bytes jsonUTF8Bytes: Bytes, extensions: any ExtensionMap = SimpleExtensionMap(), options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] where Bytes : SwiftProtobufContiguousBytes #### Summary Creates a new array of messages by decoding the given SwiftProtobufContiguousBytes containing a serialized array of messages in JSON format, interpreting the data as UTF-8 encoded text. #### Throws SwiftProtobufError or JSONDecodingError if decoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | jsonUTF8Bytes | Bytes | The JSON-formatted data to decode, represented as UTF-8 encoded text. | | extensions | any ExtensionMap | The extension map to use with this decode | | options | JSONDecodingOptions | The JSONDecodingOptions to use. | --- ## Overload 5 static func array(fromJSONUTF8Data jsonUTF8Data: Data, extensions: any ExtensionMap = SimpleExtensionMap(), options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] #### Summary Creates a new array of messages by decoding the given Data containing a serialized array of messages in JSON format, interpreting the data as UTF-8 encoded text. #### Throws SwiftProtobufError or JSONDecodingError if decoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | jsonUTF8Data | Data | The JSON-formatted data to decode, represented as UTF-8 encoded text. | | extensions | any ExtensionMap | The extension map to use with this decode | | options | JSONDecodingOptions | The JSONDecodingOptions to use. | ---