{
"ClaimType": ["The 'Claim Type' should have a minimum length of 4 characters. You have only entered 2 characters."],
"ClaimValue": ["The 'Claim Value' should have a minimum length of 4 characters. You have only entered 1 character."],
"Description": ["The 'Description' should have a minimum length of 10 characters. You have only entered 6 characters."]
}
When retrieving data from a Web API, the response looks like the example above. How can I use TypeScript to format the data as shown below?
Expected output as an array of strings:
["The 'Claim Type' should have a minimum length of 4 characters. You have only entered 2 characters.",
"The 'Claim Value' should have a minimum length of 4 characters. You have only entered 1 character.",
"The 'Description' should have a minimum length of 10 characters. You have only entered 6 characters."]