document | Document The document (IData object) to be converted to a JSON string. | |
encodeDateAs | String. Optional. Specifies how java.util.Date instances in the document are encoded in the returned JSON. Set to one of the following: long to encode java.utilData instances as timestamps, specifically the number of milliseconds since Jan 1, 1970 00:00:00. The dates are encoded as JSON numbers. ISO8601 to encode java.utilData instances as strings in a standard ISO format of: YYYY-MM-DD'T'HH:mm:ss.sssZ. The dates are encoded JSON Strings. Custom format in which dates are encoded as strings in the supplied pattern. The pattern must adhere to the date and time patterns as described in the java.text.SimpleDateFormat class in the Oracle Java API documentation. The dates are encoded as JSON strings. null to use the dateEncoding setting already in effect for the HTTP client making the request, as follows: If the HTTP client request includes jsonDateEncoding=long in the URL, then java.utilData instances as timestamps, specifically the number of milliseconds since Jan 1, 1970 00:00:00. The dates are JSON numbers. If the HTTP client request includes jsonDateEncoding=ISO8601 in the URL, the java.utilData instances are encoded as strings in a standard ISO format of: YYYY-MM-DD'T'HH:mm:ss.sssZ. The dates are JSON Strings. If the HTTP client request includes jsonDateEncoding= format in the URL, the java.utilData instances are encoded as strings in the supplied pattern. The pattern must adhere to the date and time patterns as described in the java.text.SimpleDateFormat class in the Oracle Java API documentation. If the HTTP client request does not include the jsonDateEncoding query parameter in the URL, the service uses the value of the watt.server.json.encodeDateAs parameter. For more information about watt.server.json.encodeDataAs, see webMethods Integration Server Administrator’s Guide | |
prettyPrint | String. Optional. Formats the jsonString output parameter for human readability by adding carriage returns and indentation to the JSON content. Set to: true to format jsonString output variable for human readability. false to leave the jsonString output variable in its unformatted state. The service will not add any additional carriage returns or indentation to the JSON content. null to use the prettyPrint setting already in effect for the HTTP client making the request, as follows: If the HTTP client request includes jsonPrettyPrint=true in the URI, JSON pretty printing is in effect. If the HTTP client request includes jsonPrettyPrint=false in the URI, JSON pretty printing is not in effect. If the HTTP client request does not include the jsonPrettyPrint parameter, the service uses the value of the watt.server.json.prettyPrint configuration parameter. For more information about watt.server.json.prettyPrint, see webMethods Integration Server Administrator’s Guide. |
jsonString | String JSON string resulting from the conversion of document. |