Skip to content

Enumeration

JSONValue

A lossless JSON/YAML-compatible value type used for dynamically-typed action options.

@frozen enum JSONValue

Overview

Used wherever action options are decoded from Shipfile YAML or CLI JSON flags without a statically known type.

Example

let options: JSONValue = .object([
    "scheme": .string("MyApp"),
    "verbose": .bool(true),
    "retryCount": .int(3)
])

Topics

Enumeration Cases

Instance Properties

Relationships

Conforms To

  • Swift.Copyable
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Escapable
  • Swift.ExpressibleByArrayLiteral
  • Swift.ExpressibleByBooleanLiteral
  • Swift.ExpressibleByDictionaryLiteral
  • Swift.ExpressibleByExtendedGraphemeClusterLiteral
  • Swift.ExpressibleByFloatLiteral
  • Swift.ExpressibleByIntegerLiteral
  • Swift.ExpressibleByNilLiteral
  • Swift.ExpressibleByStringLiteral
  • Swift.ExpressibleByUnicodeScalarLiteral
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype