$lowercase
$lowercase(string?) -> stringCompact type signature
<s-:s>If string is omitted, the current context value is used.
Source: JSONata
Documentation
Returns a string with all the characters of str converted to lowercase. An error is thrown if str is not a string.
Examples
Basic usage
$lowercase("Hello World")=>"hello world"
Normalize casing for display text
Input
This example uses the eligibility example input. The expression reads plan.planName and converts it to lowercase.
Example input
JSON
{
"memberId": "mbr-3001",
"patientId": "pat-0001",
"plan": {
"planCode": "PLAN-100",
"planName": "ExampleCare Standard"
},
"active": true,
"effective": {
"start": "2026-01-01",
"end": "2026-12-31"
},
"copay": {
"visit": 25,
"urgentCare": 50
},
"deductibleRemaining": 300
}
Expression
$lowercase(plan.planName)
Result
"examplecare standard"