Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda