array
Declaration
Summary
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Parameters
| Name | Type | Summary |
|---|---|---|
| jsonString | String | - |
| 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 |
|---|---|---|
| jsonString | String | - |
| 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 |
|---|---|---|
| jsonString | String | - |
| 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 | - |
| 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
| Name | Type | Summary |
|---|---|---|
| jsonString | String | - |
| options | JSONDecodingOptions | The JSONDecodingOptions to use. |
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 |
|---|---|---|
| jsonString | String | - |
| 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.