~/bend-docscommunity

fmt/toon.bend checks

raw source on the hub · import cswap-bend-cli@0.1.0.0/fmt/toon.bend as Toon

3 imports
import Base
import ../json.bend as Json
import bend-toon-codec@0.1.0.0/main.bend as Toon

Definitions

def to_toon source · line 10 · raw

@j:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x12996a27cbeef5e5ba1e8cd909be0e05/main.Json

def of_toon source · line 31 · raw

@j:0x12996a27cbeef5e5ba1e8cd909be0e05/main.Json -> 0x0717344745a30ebad1f19045228e8f18/json.Json

def emit source · line 53 · raw

@j:0x0717344745a30ebad1f19045228e8f18/json.Json -> String

TOON text (indent 2, comma delimiter, LF, no trailing newline).

def lift source · line 56 · raw

@r:Result<&2, &2, String, 0x12996a27cbeef5e5ba1e8cd909be0e05/main.Json> -> Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json>

def parse source · line 64 · raw

@s:String -> Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json>

The value of TOON text (strict mode); Fail starts with the line number.