json/print.bend checks
raw source on the hub · import 0x729eecea86ea5a2cdba3a2856a313bca/json/print.bend as Print
json/print: a value to compact text.
2 imports
import Base import ./value.bend as V
Definitions
def escape.char source · line 5 · raw
@+c:Char -> String
def escape source · line 15 · raw
@cs:List<&2, Char> -> String
the chars of a string with ", \\ and control chars escaped
def quote source · line 23 · raw
@s:String -> String
a string in quotes, escaped
def print source · line 27 · raw
@j:0x729eecea86ea5a2cdba3a2856a313bca/json/value.Json -> String
a value as compact JSON
def maybe source · line 55 · raw
@m:Maybe<&2, 0x729eecea86ea5a2cdba3a2856a313bca/json/value.Json> -> String
a parse result: the value, or "<bad>"