Here is the issue:
if (process.env.MESSAGE_STYLE=== "uppercase") {
response = "HELLO JSON"
} else {
response = "Hello json";
}
app.get("/json", (req, res) => {
res.json({
message: response
});
});
I walked through the issue here: Node and Express Json response Error - JavaScript - The freeCodeCamp Forum
Hope this helps