VJsonSerializable

public protocol VJsonSerializable

For classes and structs that can be converted into a VJson object

  • Returns the VJson hierachy representing this object.

    Declaration

    Swift

    var json: VJson
  • json(name:) Extension method

    Creates or changes the name for the VJson hierarchy representing this object.

    Usefull if an implementation creates an unnamed VJson object when a named version is needed.

    Declaration

    Swift

    func json(name: String) -> VJson

    Parameters

    name

    The name for the VJson object

    Return Value

    The named VJson object