class JsonCodec extends SchemaVisitor
Json Codec.
- Alphabetic
- By Inheritance
- JsonCodec
- SchemaVisitor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- type Type = Codec[Value]
Visitor handler type for various DAML schema cases.
Visitor handler type for various DAML schema cases.
- Definition Classes
- JsonCodec → SchemaVisitor
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bool: Type
Boolean
Boolean
- Definition Classes
- JsonCodec → SchemaVisitor
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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
- JsonCodec → SchemaVisitor
- def date: Type
Date
Date
- Definition Classes
- JsonCodec → SchemaVisitor
- 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
- JsonCodec → SchemaVisitor
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- JsonCodec → SchemaVisitor
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def int64: Type
8-byte Integer
8-byte Integer
- Definition Classes
- JsonCodec → SchemaVisitor
- def interface(id: Identifier): Type
Interface.
Interface. Used in code-gens. There is no representation of interface in Dynamic Value
- Definition Classes
- JsonCodec → SchemaVisitor
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def list(elem: Type): Type
Sequence of elements
Sequence of elements
- Definition Classes
- JsonCodec → SchemaVisitor
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def numeric(scale: Int): Type
Numeric with scale
Numeric with scale
- Definition Classes
- JsonCodec → SchemaVisitor
- def optional(elem: Type): Type
Optional element
Optional element
- Definition Classes
- JsonCodec → SchemaVisitor
- def party: Type
Party
Party
- Definition Classes
- JsonCodec → SchemaVisitor
- def record(id: Identifier, appliedArgs: => Seq[(TypeVarName, Type)], fields0: => Seq[(FieldName, Type)]): Type
ADT, Product type
ADT, Product type
- Definition Classes
- JsonCodec → SchemaVisitor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text: Type
Text
Text
- Definition Classes
- JsonCodec → SchemaVisitor
- def textMap(value: Type): Type
Map with keys of String/Text type
Map with keys of String/Text type
- Definition Classes
- JsonCodec → SchemaVisitor
- def timestamp: Type
Timestamp
Timestamp
- Definition Classes
- JsonCodec → SchemaVisitor
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unit: Type
Unit
Unit
- Definition Classes
- JsonCodec → SchemaVisitor
- 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
- JsonCodec → SchemaVisitor
- def variant(id: Identifier, appliedArgs: => Seq[(TypeVarName, Type)], cases: => Seq[(VariantConName, Type)]): Type
ADT, Sum type
ADT, Sum type
- Definition Classes
- JsonCodec → SchemaVisitor
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])