Whenever I get an error from API, I receive the error message that shows
Raw error:
{"status":"invalid","reasons":[{"code":"project-locked","description":"Project Busy: Finance Agreement is being generated"}]}
How can I show this message to our users UI without showing the message with "[{"code":""
and only show the actual texts like
{"status":"invalid","reasons":[{"code":"project-locked","description":"Project Busy: Finance Agreement is being generated"}]}
When I do show error message, it contains the "[{"code":""
texts.
Thanks!