single quotes in json throws internal server error
chansdad opened this issue · comments
chansdad commented
in CreateTodo if you post the json with single quotes in todo , it throws internal server error. How can we catch this and display a message gracefully.
{
"todo": 'text in single quotes' ,
"isCompleted": false
}
Adeel Imran commented
JSON is format that doesn't accept single quotes, think of it is a compile time error. Not sure what we can do here.