array(fromJSONUTF8Data:options:)

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.

Message+JSONArrayAdditions_Data.swift:27
static func array(fromJSONUTF8Data jsonUTF8Data: Data, options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self]

Parameters

jsonUTF8Data

The JSON-formatted data to decode, represented as UTF-8 encoded text.

options

The JSONDecodingOptions to use.

Throws

SwiftProtobufError or JSONDecodingError if decoding fails.