array(fromJSONString:options:)

Creates a new array of messages by decoding the given string containing a serialized array of messages in JSON format.

Message+JSONArrayAdditions.swift:68
static func array(fromJSONString jsonString: String, options: JSONDecodingOptions = JSONDecodingOptions()) throws -> [Self]

Parameters

jsonString

The JSON-formatted string to decode.

options

The JSONDecodingOptions to use.

Throws

SwiftProtobufError or JSONDecodingError if decoding fails.