displayEx
Returns a stream to the HTTP client by invoking displayJSON or displayXML depending on the Content-type field. If no Content-type is available in the response header, then it invokes displayJSON or displayXML depending on the iscobol.rest.default_stream configuration setting.
Format 1
void displayEx( stream )
Format 2
void displayEx( stream, hasDummyRoot)
Syntax rules
1. stream is a level 01 data item for which the IS IDENTIFIED clause has been used.
2. hasDummyRoot is an alphanumeric data item or literal hosting a boolean value (e.g. "0", "1", "true", "false", "yes", "no", "on" or "off"). If the boolean value is TRUE, then the top level item of Record-Definition is discarded and will not appear in the JSON stream . This parameter can be NULL, in such case, FALSE is assumed.
General rules
1. The MIME type is automatically applied.
2. hasDummyRoot is considered only for the JSON type.