DevicesJson Class

Namespace: id3.Devices

Definition

Specializes in parsing strings in JSON format and generating JSON strings from its contents, serving as a utility for JSON data handling.
class DevicesJson
class DevicesJson implements Finalizable
public partial class DevicesJson
public class DevicesJson implements AutoCloseable, Serializable
typedef struct id3DevicesJson *ID3_DEVICES_JSON;

Usage

devicesJsonInstance = DevicesJson()
# ...

Explicit destruction

# ...
del devicesJsonInstance
final devicesJsonInstance = sdk.DevicesJson();
// ...

Explicit destruction

// ...
devicesJsonInstance.dispose()
using (var devicesJsonInstance = new DevicesJson())
{
   // ...
}

Explicit destruction

var devicesJsonInstance = new DevicesJson()
// ...
devicesJsonInstance.Dispose()
try (DevicesJson devicesJsonInstance = new DevicesJson()) {
// ...
}

Explicit destruction

DevicesJson devicesJsonInstance = new DevicesJson();
// ...
devicesJsonInstance.close();
ID3_DEVICES_JSON hDevicesJson{};
int err = id3DevicesJson_Initialize(&hDevicesJson);
if (err == ID3_SUCCESS) {
    // ...
    id3DevicesJson_Dispose(&hDevicesJson);
}

Properties

Name

Type

Description

count

int

Gets the number of elements contained in the dict

keys

StringList

Gets a string list containing the keys in the dict.

operator [string key]

string

Gets or sets the element for the key in the dict.

Iteration

This class supports iteration in Dart, C#, Java and Python.

The iteration is done on keys

Methods

Name

Description

add

Adds an item to the DevicesJson object.

clear

Clears the DevicesJson object.

containsKey

Determines whether the DevicesJsonobject contains the specified key.

dumpToString

Creates a JSON-formatted string from the internal representation of the data.

get

Gets an item of the DevicesJson object.

getCount

Gets the number of elements in the DevicesJson object.

parse

Converts a string in JSON format into a manageable format within the class.

remove

Removes an element of the DevicesJson object.

set

Sets an item of the DevicesJson object.