Skip to main content

$snakeCase

The $snakeCase operator converts a string to snake_case format.

Input

  • A single string value

Output

  • The input string converted to snake_case format

Examples

Convert to Snake Case

{
  "$snakeCase": [
    "hello world test"
  ]
}
Result: "hello_world_test"

Convert with Capital Letters

{
  "$snakeCase": [
    "ConvertThisToSnake"
  ]
}
Result: "convert_this_to_snake"

Field Value

{
  "$snakeCase": [
    {
      "$input": "input_text"
    }
  ]
}
Result: The input_text field converted to snake_case format