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

358
Views
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
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!