Return type:
Access:
Applies to:
Write( INPUT stream-handle AS HANDLE )Write( INPUT stream-handle AS HANDLE,INPUT formatted AS LOGICAL )Write( INPUT stream-handle AS HANDLE,INPUT formatted AS LOGICAL,INPUT encoding AS CHARACTER )Write( INPUT-OUTPUT longchar AS LONGCHAR )Write( INPUT-OUTPUT longchar AS LONGCHAR,INPUT formatted AS LOGICAL )Write( INPUT-OUTPUT longchar AS LONGCHAR,INPUT formatted AS LOGICAL,INPUT encoding AS CHARACTER )Write( INPUT memptr AS MEMPTR )Write( INPUT memptr AS MEMPTR,INPUT formatted AS LOGICAL )Write( INPUT memptr AS MEMPTR,INPUT formatted AS LOGICAL,INPUT encoding AS CHARACTER )Write( OUTPUT character AS CHARACTER )Write( OUTPUT character AS CHARACTER,INPUT formatted AS LOGICAL )A MEMPTR variable to contain the JSON string in memory. If you do not specify the encoding parameter, the AVM encodes the text written to the MEMPTR as "UTF-8". This method allocates the required amount of memory for the JSON string and sets the size of the variable. If the MEMPTR contains allocated memory when the method is called, that memory may be reallocated during the execution of the method. When you are finished using the MEMPTR, you must free the associated memory, by executing SET-SIZE(memptr) = 0 on the MEMPTR.If you specify the Unknown value (?), the method uses the default value of FALSE.A CHARACTER expression indicating the Unicode Transformation Format (UTF) of the JSON string to be written. Valid values for UTF are "UTF-8", "UTF-16", "UTF-16BE", "UTF-16LE", "UTF-32", "UTF-32BE", and "UTF-32LE". If the value is the empty string (""), the Unknown value (?), or not given, the parameter defaults to "UTF-8".
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |