Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

360
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda