SQLite in response, picking .json() vs .send()?

In SQLite, in what instances would I want to choose using:
res.status(201).json({artist: row});
vs
res.status(201).send(row);
?

.json will convert non-objects (ex. null, undefined etc) to JSON whereas res.send will not convert them.
But still, they are almost the same because .json will still call .send at the end.

1 Like