Executes and returns fb(this.b)
if this is a JsonValueBoolean, else return a Left with an error message
Applies a function corresponding to this
's type
Applies a function corresponding to this
's type
the function to apply if this
is a JsonValueString
the function to apply if this
is a JsonValueNumber
the function to apply if this
is a JsonValueBoolean
the function to apply if this
is a JsonValueNull
the results of applying the corresponding function
Executes and returns fi(this.i)
if this is a JsonValueNumber which holds an number convertible to integer, else return a Left with an error message.
Executes and returns fi(this.i)
if this is a JsonValueNumber which holds an number convertible to integer, else return a Left with an error message.
I somewhat doubt this method's ability to deal with numbers more precise than doubles can handle, but there is no Number -> BigFloat function.
Executes and returns fn(this.i)
if this is a JsonValueNumber, else return a Left with an error message.
Executes and returns fs(this.s)
if this is a JsonValueString, else return a Left with an error message
A union type representing primitive types in Json objects
3.0