~/bend-docscommunity

usage/JSON_SafeTest.bend checks

raw source on the hub · import qasim-bend-kit@0.1.0.0/usage/JSON_SafeTest.bend as JSON_SafeTest

2 imports
import Base
import ../libs/JSON.bend as Json

Definitions

def check source · line 4 · raw

@ok:Bool -> @label:String -> IO(Unit)

def valid_reparse source · line 11 · raw

@result:Result<&1, &1, 0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Error, 0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Value> -> @value:0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Value -> Bool

def valid_parse source · line 19 · raw

@result:Result<&1, &1, 0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Error, 0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Value> -> Bool

def valid_roundtrip source · line 26 · raw

@text:String -> Bool

def rejects_parse source · line 29 · raw

@result:Result<&1, &1, 0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Error, 0x0b4f68372ee8cbe03f4a66931f85cfdc/libs/JSON.Value> -> Bool

def rejects source · line 34 · raw

@text:String -> Bool

def main source · line 37 · raw

IO(Unit)