Skip to content

Json

type Json =
    | String of string
    | Number of float
    | Null
    | Boolean of bool
    | Object of (string * Json) list
    | Array of Json list
AssemblyRanvier.Wire
Attributes[<RequireQualifiedAccess>] [<NoComparison>]

A JSON value

Although theoretically numbers are arbitrary prevision in JSON, here they are representated as float, which is in line with most implementations.

Cases

String of string
Number of float
Null
Boolean of bool
Object of (string * Json) list
Array of Json list

Properties

member IsArray: bool
member IsBoolean: bool
member IsNull: bool
member IsNumber: bool
member IsObject: bool
member IsString: bool