array
Declaration
Summary
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Parameters
| Name | Type | Summary |
|---|---|---|
| jsonString | String | The JSON-formatted string to decode. |
| options | JSONDecodingOptions | The JSONDecodingOptions to use. |
Overload 1
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
SwiftProtobufErrororJSONDecodingErrorif 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
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
SwiftProtobufErrororJSONDecodingErrorif 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
Summary
Creates a new array of messages by decoding the given string containing a
serialized array of messages in JSON format.
Throws
SwiftProtobufErrororJSONDecodingErrorif 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
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
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Parameters
Overload 5
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
SwiftProtobufErrororJSONDecodingErrorif 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. |
Creates a new array of messages by decoding the given string containing a
serialized array of messages in JSON format.