Package dev.frostlake.values
Class VariantText
java.lang.Object
dev.frostlake.values.VariantText
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 Summary
-
Method Details
-
canonical
The canonical text of a parsed tree.
-