Class VariantText

java.lang.Object
dev.frostlake.values.VariantText

public final class VariantText extends Object
The canonical JSON text a VARIANT stores.

It is a tree's compact rendering with one deviation from strict JSON, which Snowflake shares: a NON-FINITE double is written BARE. Live renders PARSE_JSON('1e999') as Infinity and PARSE_JSON('NaN') as NaN, where a standard writer quotes both — and a quoted one is a STRING, which loses the DOUBLE family and reads back wrong. The reader knows the bare words, so the text round-trips.

  • Method Details

    • canonical

      public static String canonical(tools.jackson.databind.JsonNode node)
      The canonical text of a parsed tree.