SafeJSONRepresentable

public protocol SafeJSONRepresentable

A type that can be converted to a JSON instance without any loss or errors.

  • The JSON representation of the instance.

    42.json // JSON.number(Number.int(42))
    

    Declaration

    Swift

    var json: JSON { get }