com.digitalasset.transcode.codec.json
Members list
Type members
Classlikes
class JsonCodec(encodeNumericAsString: Boolean, encodeInt64AsString: Boolean, excludeNullValuesInRecords: Boolean) extends CodecVisitor[Value]
Json Codec.
Json Codec.
Value parameters
- 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.
- excludeNullValuesInRecords
-
if true, fields with null values in records are excluded from the resulting json object. If false, they are included with a null value.
Attributes
- Supertypes
-
trait CodecVisitor[Value]trait WithResult[Dictionary[Codec[Value]]]trait SchemaVisitorclass Objecttrait Matchableclass AnyShow all
class JsonStringCodec(encodeNumericAsString: Boolean, encodeInt64AsString: Boolean, excludeNullValuesInRecords: Boolean) extends Delegate[JsonCodec, Dictionary[Codec[String]]]
Attributes
- Supertypes
-
trait WithResult[Dictionary[Codec[String]]]trait SchemaVisitorclass Objecttrait Matchableclass AnyShow all
In this article