# jsonUTF8Bytes Source: https://www.nianticspatial.com/docs/api/swift/NSDK.Nsdk_Vps_Start.method-jsonUTF8Bytes/ jsonUTF8Bytes --- ## Declaration func jsonUTF8Bytes(options: JSONEncodingOptions = JSONEncodingOptions()) throws -> Bytes where Bytes : SwiftProtobufContiguousBytes #### Summary Returns a SwiftProtobufContiguousBytes containing the UTF-8 JSON serialization of the message. Unlike binary encoding, presence of required fields is not enforced when serializing to JSON. #### Returns A SwiftProtobufContiguousBytes containing the JSON serialization of the message. #### Throws SwiftProtobufError or JSONEncodingError if encoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | options | JSONEncodingOptions | The JSONEncodingOptions to use. | --- ## Overload static func jsonUTF8Bytes(from collection: C, options: JSONEncodingOptions = JSONEncodingOptions()) throws -> Bytes where Self == C.Element, C : Collection, Bytes : SwiftProtobufContiguousBytes #### Summary Returns a SwiftProtobufContiguousBytes containing the UTF-8 JSON serialization of the messages. Unlike binary encoding, presence of required fields is not enforced when serializing to JSON. #### Returns A SwiftProtobufContiguousBytes containing the JSON serialization of the messages. #### Throws SwiftProtobufError or JSONEncodingError if encoding fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | options | JSONEncodingOptions | The JSONEncodingOptions to use. | ---