Parsing Module
Types
| Type | Description |
|
|
|
|
Result of analyzing an array of JSON objects |
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
analyzeObjectArray objs genTypeFn st
Parameters: Returns: ObjectArrayAnalysis * GenState
|
Analyze an array of objects to determine optional keys and infer types. The genTypeFn parameter allows recursive type generation.
|
|
Build a representative JsonObject containing all keys (for ensureRecordWith)
|
|
Collect union of keys from objects, preserving first-seen order
|
|
|
|
|
Full Usage:
generateModule rootNameOpt nodeOptions documentOptions input
Parameters:
string voption
nodeOptions : JsonNodeOptions
documentOptions : JsonDocumentOptions
input : string
Returns: ModuleOrNamespaceNode
|
Generate a ModuleOrNamespaceNode containing type declarations inferred from the given JSON input.
|
|
Get the JsonValueKind for a JsonValue without throwing. Prefer JsonValue.GetValueKind() (STJ 8+) and fall back to obtaining a JsonElement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
mkRecordDecl typeName fields
Parameters:
string
fields : FieldNode list
Returns: ModuleDecl
|
|
|
|
|
|
Full Usage:
sanitizeFieldName name
Parameters:
string
Returns: string
|
Sanitize a field name for F# (handles leading digits, reserved keywords, and special characters)
|
Full Usage:
toPascalCase s fallback
Parameters:
string
fallback : string
Returns: string
|
|
|
|
Fabulous.AST