Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCResultSet::toJSON ( p6IDataStream pOutput,
const P6WCHAR pTopElement 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgOne of the pointers is NULL.