camelize(String): String 文字列内のアンダースコアに基づいて、キャメルケースの文字列を返します。 文字列の先頭のアンダースコアを含め、すべてのアンダースコアを削除します。 パラメーター 名前 説明 text キャメルケースに変換する文字列。 例 次の例では、アンダースコアを含む文字列をキャメルケースに変換します。 ソース %dw 2.0 import * from dw::core::Strings output application/json --- { "a" : camelize("customer_first_name"), "b" : camelize("_name_starts_with_underscore") } 出力 { "a": "customerFirstName", "b": "nameStartsWithUnderscore" } camelize(Null): Null camelize を null 値に使用できるようにするヘルパー関数。
camelize(String): String 文字列内のアンダースコアに基づいて、キャメルケースの文字列を返します。 文字列の先頭のアンダースコアを含め、すべてのアンダースコアを削除します。 パラメーター 名前 説明 text キャメルケースに変換する文字列。 例 次の例では、アンダースコアを含む文字列をキャメルケースに変換します。 ソース %dw 2.0 import * from dw::core::Strings output application/json --- { "a" : camelize("customer_first_name"), "b" : camelize("_name_starts_with_underscore") } 出力 { "a": "customerFirstName", "b": "nameStartsWithUnderscore" } camelize(Null): Null camelize を null 値に使用できるようにするヘルパー関数。