Initializer

init()

Creates a new, reusable JSON encoder with the default formatting settings and encoding strategies.

Declaration

init()

See Also

First Steps

func encode<T>(T) -> Data

Returns a JSON-encoded representation of the value you supply.