Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
Why most people use .json in nodejs projects?

Im working with nodejs for backend. And im asking myself why should I use config.json, data.json etc. Why not to use js object and make deepFreeze to it? Whats the benefits of json?

Like:

const config = {
 serviceName: test,
 port: 4050,
};

const deepFreeze = obj => {
Object.keys(obj).forEach(prop => {
 if (typeof obj[prop] === 'object' && !Object.isFrozen(obj[prop])) 
  deepFreeze(obj[prop]);
});
 return Object.freeze(obj);
};
deepFreeze(config);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

json is a text format for representing arrays and objects easily.

The interest of json is that it is independent of a language.

You can read or write JSON from javascript, but also from other languages.

Moreover, during exchanges between a client and a server, it is easy to use it to transport data.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!