OEJSONObject

Attention

PRELIMINARY-IMAGE This is a preliminary API until Spring 2021 and may be improved based on user feedback. It is currently available in C++ and Python.

class OEJSONObject

The OEJSONObject class is used to represent an arbitrary JSON object. This class provides no interpretation or validation of the JSON string. This type is primarily to allow storage of arbitrary JSON strings on OERecord objects.

See also

Constructors

OEJSONObject()

The default constructor initializes an empty (and invalid) object.

OEJSONObject(const std::string &value)

Creates a JSON object from the provided string.

IsValid

bool IsValid() const

Returns true if this object was initialized with a string.

GetValue

std::string GetValue() const

Returns the string representation of the JSON object.