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

190
Views
Extracting and converting data from JSON via js

Good evening! There is a script that converts data into an array, I would like to know how it can be upgraded so that you can convert and extract data for each object (arb, astar, aurora, avax, baba, bsc, etc.), the data in the screenshot.

The script for converting data into an array (currently extracts only from bsc):

var data = {(Screenshot)};

var output = Object.keys(data.bsc.token_dict).map(k => data.bsc.token_dict[k]);
console.log(output);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Give this a try:

const output = Object.entries(data)
    .map((k, v) => ({chain: k, token_dict: Object.values(v.token_dict)}));
about 4 years ago · Juan Pablo Isaza Report
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!