Closed UziTech closed 8 years ago
using res.send(obj) gives an error
res.send(obj)
ACTUAL EXPECTED ──────────────────────────────────────────────────────────────────────────────── "{" != "{\"results\":\"recent\",\"type\":\"quote\",\"page\":\"8\"}" " \"results\": \"recent\"," != " \"type\": \"quote\"," != " \"page\": \"8\"" != "}" != ────────────────────────────────────────────────────────────────────────────────
using res.end(JSON.stringify(obj)) works
res.end(JSON.stringify(obj))
same thing with JSON ME
@UziTech the output shows you exactly what the problem is, i.e., whitespaces
you might want to look into https://github.com/azat-co/expressworks/issues/70
using
res.send(obj)
gives an errorusing
res.end(JSON.stringify(obj))
works