Closed occult closed 8 years ago
The official solution worked fine for me. Did you completely paste it to see for yourself?
delete query.__proto__;
is the only difference?
The official solution didn't work for me neither.
Here's what I got with the Official Solution:
ACTUAL EXPECTED
───────────────────────────────────────────────────────────────────────────────
"{" != "{\"results\":\"recent\",\"type\":\"quote\",\"page\":\"10\"}"
" \"type\": \"quote\"," !=
" \"page\": \"10\"," !=
" \"__proto__\": {}" !=
"}" !=
────────────────────────────────────────────────────────────────────────────────
I'm guessing it has something to do with my express version. I'm using 3.2.6 at the moment. Deleting proto and using JSON.stringify worked like a charm!
The official solution is:
but it doesn't work.
My solution was:
I don't know if it's a good solution, but it worked.