JSON in SAML attribute statements

I am looking to use JSON in the SAML Attribute statements along with expression statement.
The following appears to produce a 500 Internal server error

{"full_name": "${user.firstName} ${user.lastName}", "department": "Sales"}

Where are you submitting/posting this JSON string?