Public Member Functions
Detailed Description
Simple wrapper class to jsoncpp that make working with SWIG more convenient.Member Function Documentation
__getitem__() [1/2]
Returns
The fields value
__getitem__() [2/2]
Returns
The items value
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
| Type | Name |
|---|---|
| JsonValue | __getitem__ (string name) Function for reading an objects field in python. |
| JsonValue | __getitem__ (int index) Function for reading an arrays item in python. |
| __setitem__ (string name, JsonValue v) Destructor. | |
| __setitem__ (int index, JsonValue v) Function for setting an arrays intem in python. | |
| string | __str__ () Function to print out the JsonValue in Python. |
| bool | AsBool () Return the JsonObject as a bool. |
| number | AsDouble () Return the JsonObject as a number value. |
| int | AsInt () Return the JsonObject as an integer. |
| string | AsString () Return the JsonObject as a string. |
| number | AsUInt () Return the JsonObject as an numbereger. |
| bool | isObject () Return if the JsonValue is an object. |
| JsonValue () Constructor. | |
| int | Size () The size of the Json object. |
JsonValue __getitem__(string name)
| Name | Description |
|---|---|
| name | The name of the item |
JsonValue __getitem__(int index)
| Name | Description |
|---|---|
| name | The index of the item in the array |
__setitem__(
string name,
JsonValue v
)
| Name | Description |
|---|---|
| name | The name of the objects field |
| v | The value to set the field to |
__setitem__(
int index,
JsonValue v
)
| Name | Description |
|---|---|
| name | The index of the arrays item |
| v | The value to set the item to |
string __str__()
bool AsBool()
number AsDouble()
int AsInt()
string AsString()
number AsUInt()
bool isObject()
int Size()
Was this page helpful?