Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

90
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda