presto-main/src/main/java/io/prestosql/util/JsonUtil.java/ShortDecimalJsonGeneratorWriter/writeJsonValue
class ShortDecimalJsonGeneratorWriter:        @Override
        public void writeJsonValue(JsonGenerator jsonGenerator, Block block, int position, ConnectorSession session)
                throws IOException
        {
            if (block.isNull(position)) {
                jsonGenerator.writeNull();
            }
            else {
                BigDecimal value = BigDecimal.valueOf(type.getLong(block, position), type.getScale());
                jsonGenerator.writeNumber(value);
            }
        }