Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
How to convert a long line of json data into multiple and readable lines

EDIT !

I've found my answer on here so go there if you think you have the same problem !

My original question :

So recently I've been using the fs module to try creating my new json database and it succesfully worked ! This is the json file I had at first.

{
  "name":"Jake",
  "gender":"Male"
}

The problem is that when using fs.writeFile on my file for adding a new property. The file looks like this :

{"name":"Jake","gender":"Male","hobby":"art"}

This is really annoying as I have to use a website to edit my json data to automatically add the spaces and new lines. My question is that is it possible (and how) to automatically edit my file to become readable again after editing it ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda