The caller can use their own implementation of the p6IJSONReader interface.
That implementation can be used to parse JSON or any other data format that can be mapped into JSON calls (thus mapping any compatible format into a DOM tree).
Note that this function will set a new p6IJSONContentHandler by calling the pReader->setContentHandler() method. This new content handler is internal to the DOM object and translates the JSON calls into a DOM tree. It is assumed that all other handler (e.g., error handler) are set by the creator of the pReader.
- Parameters
-
pReader | [ in ] An interface pointer of type p6IJSONReader created by the caller. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidState | P6DOMXML_USERPARSER was not set in initialize() |
P6R::eInvalidArg | pReader is NULL. |