array(fromJSONUTF8Bytes:extensions:options:)

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.

Message+JSONArrayAdditions.swift:129
static func array<Bytes>(fromJSONUTF8Bytes jsonUTF8Bytes: Bytes, extensions: any ExtensionMap = SimpleExtensionMap(), options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self] where Bytes : SwiftProtobufContiguousBytes

Parameters

jsonUTF8Bytes

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

extensions

The extension map to use with this decode

options

The JSONDecodingOptions to use.

Throws

SwiftProtobufError or JSONDecodingError if decoding fails.