Convert a CborValue into a JsonValue if there is an equivalent JsonValue; else return a UnsuccessfulTypeCoersion.
Convert a CborValue into a JsonValue if there is an equivalent JsonValue; else return a UnsuccessfulTypeCoersion.
3.1
Allows implicit conversions from Int or Double directly to JsonValue
Allows implicit conversions from Int or Double directly to JsonValue
3.1
Convert a StringOrInt value into a JsonValue
Convert a CborValue into a JsonValue, where ByteStrs are instead converted into hexencoded strings.
Convert a CborValue into a JsonValue, where ByteStrs are instead converted into hexencoded strings.
(Since version 3.1) doesn't handle incompatible numbers; use cborValue2JsonValueEither then fold that method's return value
The cases of JsonValue and methods to convert other things into JsonValues.
3.0