JsonObject class winrt Class
Represents a JSON object containing a collection of name and JsonValue pairs.
- Inheritance
-
- Object
- IUnknown
- IInspectable
- JsonObject
- Implemented types
- Available extensions
Constructors
- JsonObject({Allocator allocator = calloc})
-
JsonObject.fromRawPointer(Pointer<
COMObject> ptr)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ptr
↔ Pointer<
COMObject> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Gets the number of items in the map.
no setteroverride
- valueType → JsonValueType
-
no setteroverride
Methods
-
addRef(
) → int -
inherited
-
clear(
) → void -
Removes all items from the map.
override
-
first(
) → IIterator< IKeyValuePair< String, IJsonValue?> > -
Returns an iterator for the items in the collection.
override
-
getArray(
) → JsonArray -
override
-
getBoolean(
) → bool -
override
-
getIids(
Pointer< Uint32> iidCount, Pointer<Pointer< iids) → intGUID> > -
inherited
-
getNamedArray(
String name) → JsonArray -
override
-
getNamedArrayOrDefault(
String name, JsonArray defaultValue) → JsonArray -
override
-
getNamedBoolean(
String name) → bool -
override
-
getNamedBooleanOrDefault(
String name, bool defaultValue) → bool -
override
-
getNamedNumber(
String name) → double -
override
-
getNamedNumberOrDefault(
String name, double defaultValue) → double -
override
-
getNamedObject(
String name) → JsonObject -
override
-
getNamedObjectOrDefault(
String name, JsonObject defaultValue) → JsonObject -
override
-
getNamedString(
String name) → String -
override
-
getNamedStringOrDefault(
String name, String defaultValue) → String -
override
-
getNamedValue(
String name) → JsonValue -
override
-
getNamedValueOrDefault(
String name, JsonValue defaultValue) → JsonValue -
override
-
getNumber(
) → double -
override
-
getObject(
) → JsonObject -
override
-
getRuntimeClassName(
Pointer< IntPtr> className) → int -
inherited
-
getString(
) → String -
override
-
getTrustLevel(
Pointer< Int32> trustLevel) → int -
inherited
-
getView(
) → Map< String, IJsonValue?> -
Returns an immutable view of the map.
override
-
hasKey(
String key) → bool -
Determines whether the map contains the specified key.
override
-
insert(
String key, IJsonValue? value) → bool -
Inserts or replaces an item in the map.
override
-
lookup(
String key) → IJsonValue? -
Returns the item at the specified key in the map.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryInterface(
Pointer< GUID> riid, Pointer<Pointer< ppvObject) → intNativeType> > -
inherited
-
release(
) → int -
inherited
-
remove(
String key) → void -
Removes an item from the map.
override
-
setNamedValue(
String name, IJsonValue value) → void -
override
-
stringify(
) → String -
override
-
toInterface(
String iid) → Pointer< COMObject> -
Cast an existing COM object to a specified interface.
inherited
-
toMap(
) → Map< String, IJsonValue?> -
Creates an unmodifiable Map from the current IMap instance.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
String input) → JsonObject -
tryParse(
String input, JsonObject result) → bool