setJson

Navigation:  NxLib API > C++ Interface > NxLibItem >

setJson

Previous pageReturn to chapter overviewNext page

Set the item's value to a new value specified as JSON string. This might also be a representation of an entire subtree.

Signatures

Variants throwing exceptions on API errors:

void setJson(std::string const& jsonValue, bool onlyWriteableNodes = false) const

Variants returning API errors as int* parameter:

void setJson(int* returnCode, std::string const& jsonValue, bool onlyWriteableNodes = false) const

Parameters

returnCode

The error code returned when accessing the item

jsonValue

The value to set.

onlyWriteableNodes

See the corresponding parameter of nxLibSetJson.

Return Value

none