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's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Tue Jun 22 08:18:17 UTC 2021 against commit 2235c7b2235c7b18f86f1cf214e246b88b0ea193d87fe80.

Current version is 2.2.1100 BETA which has been verified against tests.