Packages

class JsonCodec extends SchemaVisitor

Json Codec.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonCodec
  2. SchemaVisitor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsonCodec(encodeNumericAsString: Boolean = true, encodeInt64AsString: Boolean = true)

    encodeNumericAsString

    encode numeric as string (true) or as a json number (false). The latter might be useful for querying and mathematical operations, but can loose precision due to float point errors.

    encodeInt64AsString

    encode int64 as a string (true) or as a json number (false). The latter might be useful for querying and mathematical operations, but can loose precision, as numbers in some json implementations are backed by Double

Type Members

  1. type Type = Codec[Value]

    Visitor handler type for various DAML schema cases.

    Visitor handler type for various DAML schema cases.

    Definition Classes
    JsonCodecSchemaVisitor

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bool: Type

    Boolean

    Boolean

    Definition Classes
    JsonCodecSchemaVisitor
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def contractId(template: Type): Type

    Contract Id, parametrized with the processor for corresponding template

    Contract Id, parametrized with the processor for corresponding template

    Definition Classes
    JsonCodecSchemaVisitor
  8. def date: Type

    Date

    Date

    Definition Classes
    JsonCodecSchemaVisitor
  9. def enum(id: Identifier, cases: Seq[EnumConName]): Type

    ADT, Sum type - special case, where there are only named constructors without further payloads

    ADT, Sum type - special case, where there are only named constructors without further payloads

    Definition Classes
    JsonCodecSchemaVisitor
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def genMap(key: Type, value: Type): Type

    Map with keys and values of any type

    Map with keys and values of any type

    Definition Classes
    JsonCodecSchemaVisitor
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def int64: Type

    8-byte Integer

    8-byte Integer

    Definition Classes
    JsonCodecSchemaVisitor
  16. def interface(id: Identifier): Type

    Interface.

    Interface. Used in code-gens. There is no representation of interface in Dynamic Value

    Definition Classes
    JsonCodecSchemaVisitor
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def list(elem: Type): Type

    Sequence of elements

    Sequence of elements

    Definition Classes
    JsonCodecSchemaVisitor
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. def numeric(scale: Int): Type

    Numeric with scale

    Numeric with scale

    Definition Classes
    JsonCodecSchemaVisitor
  23. def optional(elem: Type): Type

    Optional element

    Optional element

    Definition Classes
    JsonCodecSchemaVisitor
  24. def party: Type

    Party

    Party

    Definition Classes
    JsonCodecSchemaVisitor
  25. def record(id: Identifier, appliedArgs: => Seq[(TypeVarName, Type)], fields0: => Seq[(FieldName, Type)]): Type

    ADT, Product type

    ADT, Product type

    Definition Classes
    JsonCodecSchemaVisitor
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def text: Type

    Text

    Text

    Definition Classes
    JsonCodecSchemaVisitor
  28. def textMap(value: Type): Type

    Map with keys of String/Text type

    Map with keys of String/Text type

    Definition Classes
    JsonCodecSchemaVisitor
  29. def timestamp: Type

    Timestamp

    Timestamp

    Definition Classes
    JsonCodecSchemaVisitor
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def unit: Type

    Unit

    Unit

    Definition Classes
    JsonCodecSchemaVisitor
  32. def variable(name: TypeVarName, value: Codec[Value]): Codec[Value]

    Type Variable.

    Type Variable.

    Codecs might want to use value substitution, effectively replacing type variables with concrete types, while code generators might want to use type variable names.

    Definition Classes
    JsonCodecSchemaVisitor
  33. def variant(id: Identifier, appliedArgs: => Seq[(TypeVarName, Type)], cases: => Seq[(VariantConName, Type)]): Type

    ADT, Sum type

    ADT, Sum type

    Definition Classes
    JsonCodecSchemaVisitor
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from SchemaVisitor

Inherited from AnyRef

Inherited from Any

Ungrouped