Skip to main content
Part of MOP json Simple wrapper class to jsoncpp that make working with SWIG more convenient.

Public Member Functions

Detailed Description

Simple wrapper class to jsoncpp that make working with SWIG more convenient.

Member Function Documentation

__getitem__() [1/2]

Function for reading an objects field in python. Parameters Returns The fields value

__getitem__() [2/2]

Function for reading an arrays item in python. Parameters Returns The items value

__setitem__() [1/2]

Destructor. Function for setting an objects field in python Parameters

__setitem__() [2/2]

Function for setting an arrays intem in python. Parameters

__str__()

Function to print out the JsonValue in Python. Returns The string containg the JsonValues representation.

AsBool()

Return the JsonObject as a bool. Returns A bool

AsDouble()

Return the JsonObject as a number value. Returns A number value

AsInt()

Return the JsonObject as an integer. Returns An integer

AsString()

Return the JsonObject as a string. Returns A string

AsUInt()

Return the JsonObject as an numbereger. Returns An numbereger

isObject()

Return if the JsonValue is an object. Returns True iff the JsonValue is an object

Size()

The size of the Json object. Returns The objects size