i have multiple strings with different keys like name, email and otp.
and i want to embed json values to string dynamincaly with matching keys in json.
like this string.
Dear {user}, Your account for Portal has been created against this Email Address {email}.
and JSON like this.
i want to embed this json into string.
{
"user": "John Wick",
"email": "some@email.com"
}
i want result like this after embedding json into string.
Dear John Wick, Your account for Portal has been created against this Email Address some@email.com.
any idea how can i achieve this. thanks in advance.