|
Window Framework for UI Toolkit v2.0.x
|
Ordered object with ordinal, case-sensitive unique keys. More...


Data Structures | |
| class | Reader |
Public Member Functions | |
| JsonObject () | |
| Creates an empty independently owned ordered object. | |
| JsonObject (JsonProperty property) | |
| Creates an object containing the supplied property value reference. | |
| override JsonNode | DeepClone () |
| Copies this object and all descendant mutable nodes. | |
| IEnumerable< JsonProperty > | Properties () |
| Enumerates stored properties in insertion order. | |
| Public Member Functions inherited from GWG.WindowFramework.Theming.Json.JsonNode | |
| JsonNode | DeepClone () |
| Creates an independently mutable data tree, retaining scalar types and order. | |
| override string | ToString () |
| Serializes compact JSON without changing this tree or writing files. | |
| string | ToString (JsonFormatting formatting) |
| Serializes this data tree using the selected whitespace policy. | |
Static Public Member Functions | |
| static JsonObject | Parse (string json) |
| Parses one strict object with unique keys, maximum depth eight and 256 KiB UTF-8 input. | |
| Static Public Member Functions inherited from GWG.WindowFramework.Theming.Json.JsonNode | |
| static | operator double (JsonNode node) |
| Reads either numeric kind using invariant double parsing. | |
| static | operator float (JsonNode node) |
| Converts a numeric scalar through double to float. | |
| static | operator int (JsonNode node) |
| Reads a lexical integer within Int32 range; float/exponent kinds are not accepted. | |
| static implicit | operator JsonNode (bool value) |
| Creates a boolean scalar without parsing text. | |
| static implicit | operator JsonNode (double value) |
| Creates a finite floating scalar using invariant round-trip spelling. | |
| static implicit | operator JsonNode (float value) |
| Creates a finite floating scalar using invariant round-trip spelling. | |
| static implicit | operator JsonNode (int value) |
| Creates an invariant lexical integer scalar. | |
| static implicit | operator JsonNode (string value) |
| Creates a string scalar; null produces an explicit JSON-null node. | |
| static | operator string (JsonNode node) |
| Reads a string scalar, or null for absent/JSON-null input. | |
| static string | Quote (string value) |
| Encodes a JSON string, including control characters and surrogate code units. | |
Properties | |
| int | Count [get] |
| Gets current number of named properties. | |
| override JsonNode | this[string key] [get, set] |
| Gets a named node or null if missing; assigns/replaces without changing existing key order. | |
| override JsonKind | Type [get] |
| Gets Object kind. | |
| Properties inherited from GWG.WindowFramework.Theming.Json.JsonNode | |
| virtual JsonNode | this[string key] [get, set] |
| Named object access; the base implementation throws when a subtype is not an object. | |
| JsonKind | Type [get] |
| Gets this node's exact JSON kind; lexical integer and float kinds are distinct. | |
Private Attributes | |
| readonly Dictionary< string, JsonProperty > | _lookup = new Dictionary<string, JsonProperty>(StringComparer.Ordinal) |
| readonly List< JsonProperty > | _properties = new List<JsonProperty>() |
Ordered object with ordinal, case-sensitive unique keys.
|
inline |
Creates an empty independently owned ordered object.

|
inline |
Creates an object containing the supplied property value reference.
| property | Nonnull property; its node is borrowed unless cloned beforehand. |
|
inline |
Copies this object and all descendant mutable nodes.


|
inlinestatic |
Parses one strict object with unique keys, maximum depth eight and 256 KiB UTF-8 input.
| json | Nonnull strict JSON object text; comments/trailing data are refused. |
| JsonParseException | Syntax, duplicate key, trailing data, resource limit or nonfinite number. |


|
inline |
Enumerates stored properties in insertion order.
Do not mutate the object while enumerating it or assume thread safety.
|
private |
|
private |
|
get |
Gets current number of named properties.
|
getset |
Gets a named node or null if missing; assigns/replaces without changing existing key order.
| key | Nonnull ordinal case-sensitive name. |
Null assigned values become explicit JSON null. Assignment retains node references; DeepClone to prevent shared mutable subtrees. The API replaces duplicate assigned keys, whereas the parser rejects duplicate keys in input.
|
get |
Gets Object kind.