adeelibr / deno-playground

deno playground repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

single quotes in json throws internal server error

chansdad opened this issue · comments

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
}

JSON is format that doesn't accept single quotes, think of it is a compile time error. Not sure what we can do here.