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

361
Vistas
Manipulation with JSON array in JavaScript , arrange different rows

I have a JSON data in blow format

[
  {
    "timeSheetDailyActivityId": 0,
    "Time In": "12:42"
  },
  {
    "timeSheetDailyActivityId": 1,
    "Time Out": "21:45"
  },
  {
    "timeSheetDailyActivityId": 2,
    "Time In": "21:44"
  },
  {
    "timeSheetDailyActivityId": 3,
    "Time Out": "21:46"
  },
  {
    "timeSheetDailyActivityId": 4,
    "Break In": "23:42"
  },
  {
    "timeSheetDailyActivityId": 5,
    "Break Out": "21:42"
  }
]

Also you can see Attachment

i want to convert it to this remove empty cell.

[
  {
    "timeSheetDailyActivityId": 0,
    "Time In": "12:42",
    "Time Out": "21:45",
    "Break In": "23:42",
    "Break Out": "21:42"
  },
  {
    "timeSheetDailyActivityId": 0,
    "Time In": "21:44",
    "Time Out": "21:46",
    "Break In": "",
    "Break Out": ""
  },
  {}
]

i want result like this. OUT i want

Please anybody here to help me i am stuck from last 2 year . i try much but failed or finally post here

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