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

92
Views
How to slice() return values from JSON API

have a special situation where a JSON response is being returned like this:

{
   "facing:researcher&section:analysis": {
      "average": 0.9387347346834,
      "stddev": 0.3888349838943
   }
}

These entries are going to be charted with D3. The problem is, I am seemingly going to have to take that first key, i.e. facing:researcher&section:analysis" and do a .split(), or splice() or both type of operation in the client side JS to extract these out into groups.

Have any of you ever did this before to an API result? It seems unusual because it is moving the normalization of the data to the client who is transmuting it, instead of receiving just JSON with the data broken out?

How would you do the split/slice type code by using a map()?

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!