wrap
wrap(any: Any): Binary typeMethod;
The wrap method of the Orb class converts a value specified by the any parameter to a Binary representation suitable for being sent to the requesting web client to display. For example, the typical Binary representation of an Integer type is unsuitable for displaying in a web browser, therefore if this method is passed an Integer, it returns a Binary representation of a human‑readable form of the Integer.
As another example, the Binary representation of a String type differs depending on if the Jade Platform system is an ANSI or Unicode system. If this method is passed a String, it returns a suitable Binary representation of the String independent of the Jade Platform encoding.
The opposite transformation to this method is performed when a property on a route class is set from request data.
