IDecoderHelpers
[<Interface>]
type IDecoderHelpers<'JsonValue> =
abstract member anyToString ('JsonValue) : string
abstract member asArray ('JsonValue) : 'JsonValue array
abstract member asBoolean ('JsonValue) : bool
abstract member asFloat ('JsonValue) : float
abstract member asFloat32 ('JsonValue) : float32
abstract member asInt ('JsonValue) : int
abstract member asString ('JsonValue) : string
abstract member getProperties ('JsonValue) : string seq
abstract member getProperty (string, 'JsonValue) : 'JsonValue
abstract member hasProperty (string) ('JsonValue) : bool
abstract member isArray ('JsonValue) : bool
abstract member isBoolean ('JsonValue) : bool
abstract member isIntegralValue ('JsonValue) : bool
abstract member isNullValue ('JsonValue) : bool
abstract member isNumber ('JsonValue) : bool
abstract member isObject ('JsonValue) : bool
abstract member isString ('JsonValue) : bool
abstract member numberToString ('JsonValue) : string| Assembly | Ranvier.Wire |
Reads and tests a JSON value of the runtime's own type.
Implemented once per runtime package. A decoder goes through it so that the same decoder works on every runtime.
Methods
abstract member getProperty (string, 'JsonValue) : 'JsonValue
abstract member getProperty (string, 'JsonValue) : 'JsonValueThe value of the object property under the given name.