Static Propertygrdb 7.2.0GRDB

defaultEncoder

The default JSONEncoder for database values.

JSONDumpFormat.swift:52
static var defaultEncoder: JSONEncoder { get }

It is configured so that blob values (Data) are encoded in the base64 format, and Non-conforming floats are encoded as “inf”, “-inf” and “nan”.

It uses the output formatting option JSONEncoder.OutputFormatting.withoutEscapingSlashes when available.

Modifying the returned encoder does not affect any encoder returned by future calls to this method. It is always safe to use the returned encoder as a starting point for additional customization.