Serving {"message":"Hello json"} instead of {"message": "Hello json"}

Tell us what’s happening:
I am serving the object {“message”: “Hello json”} as a resp, in JSON format, to GET requests troute. But the browser is displaying {“message”:“Hello json”} (difference: white indentation is missing after : which is why the test is being passed)
What to do now

Your project link(s)

solution: https://replit.com/@satyarai23/boilerplate-express-3json

Your browser information:

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

Challenge: Serve JSON on a Specific Route

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.