nxLibGetJson

Navigation:  NxLib API > C Interface > Read Access >

nxLibGetJson

Previous pageReturn to chapter overviewNext page

Retrieves an item value or an entire subtree in JSON represetation.

Signature

NXLIBSTR nxLibGetJson (NXLIBERR* result, NXLIBSTR itemPath, NXLIBBOOL prettyPrint, NXLIBINT numberPrecision, NXLIBBOOL scientificNumberFormat);

Parameters

result

A pointer to a variable for the error code of the operation.

itemPath

The path of the item to access.

prettyPrint

Specify true here to format the resulting string with line breaks and tabs.

numberPrecision

The floating point precision of the returned numbers.

scientificNumberFormat

Specifies whether to use scientific notation for all numbers.

Return Value

A JSON string representing the item value or subtree.