encodeFrame

internal fun encodeFrame(frame: AnyFrame): JsonArray

Encodes each row of frame as the JSON record it was read from: the value of the unnamed "value" column, else the array of the unnamed "array" column, else an object of the remaining columns, else — when the row holds no values at all — null.