JsonCodec
Json Codec.
Value parameters
- allowMissingFields
-
allow missing fields in records or throw, Canton uses this for testing only
- 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 lose precision, as numbers in some json implementations are backed Double.
- encodeNumericAsString
-
encode numeric as string (true) or as a json number (false). The latter might be useful for querying and mathematical operations, but can lose precision due to float point errors.
- removeTrailingNonesInRecords
-
if true, trailing nones are removed from the record values
Attributes
- Graph
-
- Supertypes
-
trait CodecVisitor[Value]trait WithResult[Dictionary[Codec[Value]]]trait SchemaVisitorclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Final result type
Final result type
Attributes
- Inherited from:
- WithResult
Visitor handler type for various DAML schema cases.
Visitor handler type for various DAML schema cases.
Attributes
- Inherited from:
- CodecVisitor
Value members
Concrete methods
Boolean
Boolean
Attributes
- Definition Classes
-
SchemaVisitor
Contract ID, parametrized with the processor for corresponding template
Contract ID, parametrized with the processor for corresponding template
Attributes
- Definition Classes
-
SchemaVisitor
Date
Date
Attributes
- Definition Classes
-
SchemaVisitor
ADT, Sum type - special case, where there are only named constructors without arguments
ADT, Sum type - special case, where there are only named constructors without arguments
Attributes
- Definition Classes
-
SchemaVisitor
Map with keys and values of any type
Map with keys and values of any type
Attributes
- Definition Classes
-
SchemaVisitor
8-byte Integer
8-byte Integer
Attributes
- Definition Classes
-
SchemaVisitor
Sequence of elements
Sequence of elements
Attributes
- Definition Classes
-
SchemaVisitor
Numeric with scale
Numeric with scale
Attributes
- Definition Classes
-
SchemaVisitor
Optional element
Optional element
Attributes
- Definition Classes
-
SchemaVisitor
Party
Party
Attributes
- Definition Classes
-
SchemaVisitor
ADT, Product type
ADT, Product type
Attributes
- Definition Classes
-
SchemaVisitor
Text
Text
Attributes
- Definition Classes
-
SchemaVisitor
Map with keys of String/Text type
Map with keys of String/Text type
Attributes
- Definition Classes
-
SchemaVisitor
Timestamp
Timestamp
Attributes
- Definition Classes
-
SchemaVisitor
Unit
Unit
Attributes
- Definition Classes
-
SchemaVisitor
ADT, Sum type
ADT, Sum type
Attributes
- Definition Classes
-
SchemaVisitor
Inherited methods
Type Application
Type Application
Attributes
- Definition Classes
-
CodecVisitor -> SchemaVisitor
- Inherited from:
- CodecVisitor
Attributes
- Definition Classes
-
CodecVisitor -> SchemaVisitor
- Inherited from:
- CodecVisitor
Wrap type into addressable DataType
Wrap type into addressable DataType
Attributes
- Definition Classes
-
CodecVisitor -> SchemaVisitor
- Inherited from:
- CodecVisitor
Type Variable.
Type Variable.
Codecs will use substitution, effectively replacing type variables with concrete types, while code generators will use type variable names.
Attributes
- Definition Classes
-
CodecVisitor -> SchemaVisitor
- Inherited from:
- CodecVisitor