Return all the values in the result set in JSON format.
A result set is encoded as a single array of embedded objects, where each row is an object. The 'pTopElement' string parameter is used to place a label on the array. Each element will have the names of the columns defined in the database schema. After calling this function, a call to reset() would be needed to access any of the result set data.
- Parameters
-
pOutput | [ in ] The JSON output is written to this data stream. |
pTopElement | [ in ] String to be used for the top most element in the generated JSON document. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eInvalidArg | One of the pointers is NULL. |