Basic Node and Express - Serve JSON on a Specific Route

Tell us what’s happening:
Describe your issue in detail here.
guys since i am using the boiler plate the hello json which is spaced between : and
like instead of displaying “message”: “Hello json”;
the spaces getting trimmed like “message”:“Hello json”;

Your project link(s)

solution: https://replit.com/@20bec011basawa/boilerplate-expressjson

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Basic Node and Express - Serve JSON on a Specific Route

Link to the challenge:

This is not a problem and is expected behavior.

You can specify spacing by using:

app.set('json spaces', 2);