murex Shell Docs

Command Reference: cast

Alters the data type of the previous function without altering it's output

Description

cast works a little like when you case variables in lower level languages where the value of the variable is unchanged. In murex the contents in the pipeline are preserved however the reported data type is altered.

Usage

<stdin> -> cast data-type -> <stdout>

Examples

» out: {"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}} -> cast json
{"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}}

Detail

If you want to reformat the STDIN into the new data type then use format instead.

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Oct 19 06:12:17 UTC 2020 against commit 81299cb81299cbf18c05a5d38bdde93a5f5a3c5ff005b27. Downloadable murex binaries are also built weekly. Current version is 1.0.0000 BETA which has been verified against tests.