Contact Free trial Login

camelize

camelize(String): String

Returns a string in camel case based on underscores in the string.

Parameters

Name Description

text

The string to convert to camel case.

Example

This example converts a string that contains underscores to camel case.

Source

%dw 2.0
import * from dw::core::Strings
output application/json
---
{ "camelize" : camelize("customer_first_name") }

Output

{ "camelize" : "customerFirstName" }

camelize(Null): Null

Helper function that allows camelize to work with null values.