JSON TransformString
toUpperCase
Convert a string to uppercase
toUpperCase
Converts every character of a string to uppercase.
Options
This operation takes no options; pass an empty object or omit options entirely.
Example
Input
"Hello World"Operation
{ "type": "toUpperCase" }Output
"HELLO WORLD"In a Circuit Step
{
"name": "shout_label",
"description": "Uppercase a label for display",
"function": "circuit.core.transform.json",
"input": {
"source": "${{ input.label }}",
"operations": [
{ "type": "toUpperCase" }
]
},
"outputs": [
{
"name": "shouted_label",
"description": "Label rendered in uppercase",
"value": "${{ shout_label.output.transformed_result }}"
}
]
}Notes & gotchas
- Errors with
toUpperCase: expected stringif the input is not a string. - Uses Rust's Unicode-aware
to_uppercase, which can change byte length. - Use
toLowerCasefor the inverse.