Formatter.Logical.LPTJson

Serialise the Logical Printing Tree to JSON for debugging.

Exposed via the CLI's gren-format --lpt, which prints the tree as nested objects: each node carries its shape constructor (type, plus shape-specific fields like first/last/stype for OriginalRows, or the literal text for leaves) and a children array.

lptToJson : LPNode -> String

Serialise the Logical Printing Tree to JSON for debugging.