Package-level declarations
Types
Writes a BigDecimal into JSON as a bare number, keeping every digit it had.
Writes an enum constant into JSON under the label PostgreSQL knows it by, rather than under its Kotlin name.
Writes an Instant the way a timestamptz column holds it, so that (payload->>'issued')::timestamptz reads back what was put in.
Writes a LocalDateTime the way a timestamp column holds it, so that (payload->>'taken')::timestamp reads back what was put in.
Writes a LocalDate the way a date column holds it, so that (payload->>'until')::date reads back what was put in.
Translates the year between the way ISO-8601 writes it and the way PostgreSQL does.
Properties
A Json carrying octaviusSerializersModule and otherwise left alone.
The contextual serializers for the four types whose JSON form does not match their column form.
Functions
The token as it stood in the text, read before anything could narrow it to a Double.
The token as it stood in the text, read before anything could narrow it to a Double.
The token as it stood in the text, read before anything could narrow it to a Double.
The literal to write, which is where the platforms differ: one holds digits, the other holds a number.
The JS BigDecimal already holds the text, so there is nothing to format on the way out.
toPlainString and not toString: the latter switches to scientific notation once the exponent is far enough from the scale, and 1.0E+10 is not a JSON number.