Json
Namespace: Saon.Json
Attributes:
[<RequireQualifiedAccess>]
Functions and values
Function or value | Description |
Json.bool propName element
Signature: propName:string -> element:(type) -> ParserResult<bool>
|
Get the |
Json.createDocumentParser(parser)
Signature: parser:((type) -> ParserResult<'T>) -> (type) -> ParserResult<'T>
Type parameters: 'T |
Create a parser to parse |
Json.embeddedObject inner element
Signature: inner:((type) -> ParserResult<'T>) -> element:(type) -> ParserResult<'T> * (type)
Type parameters: 'T |
Parse part of the current |
Json.int64 propName element
Signature: propName:string -> element:(type) -> ParserResult<int64>
|
Get the |
Json.list inner propName element
Signature: inner:Transformer<(type),'T> -> propName:string -> element:(type) -> ParserResult<'T list>
Type parameters: 'T |
Apply the |
Json.object inner propName element
Signature: inner:((type) -> ParserResult<'T>) -> propName:string -> element:(type) -> ParserResult<'T>
Type parameters: 'T |
Parse the |
Json.oneOf matchers element
Signature: matchers:(string * Transformer<(type),'T>) list -> element:(type) -> ParserResult<'T> * (type)
Type parameters: 'T |
Matches the first of properties it finds, applying the transformer to it. |
Json.onlyOneOf matchers element
Signature: matchers:(string * Transformer<(type),'T>) list -> element:(type) -> ParserResult<'T> * (type)
Type parameters: 'T |
Matches only one of the properties, applying the transformer to it.
Returns a |
Json.optionalProperty(...)
Signature: propName:string -> func:Transformer<(type),'T> -> element:(type) -> ParserResult<'T option> * (type)
Type parameters: 'T |
Apply the transformation |
Json.property propName func element
Signature: propName:string -> func:Transformer<(type),'T> -> element:(type) -> ParserResult<'T> * (type)
Type parameters: 'T |
Apply the transformation |
Json.string propName element
Signature: propName:string -> element:(type) -> ParserResult<string>
|
Get the |