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

192
Views
Format Json object to array with multiple objects

I want to convert my Json data :

{
    ID:813878
    Name:"My name Value"
    LastName:"John"
    City:"Boston"
    Age:"55"
}

To be like this :

{
  "createValues": [
    {
      "field": "ID",
      "value":813878
    },
    {
      "field": "Name",
      "value": "My name Value"
    },
      {
      "field": "LastName",
      "value": "John"
    },
      {
      "field": "City",
      "value": "Bostone"
    },
    
      {
      "field": "Age",
      "value": "55"
    },

  ],
 
}

I found some js functions like Object.keys and Object.values but I don't know how to use it in this example.. Any idea how to achieve it please ?

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!