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

189
Visualizações
How do I group specific form data and then post it to an api?

Well, my issue is that I am ok with pulling data from my HTML form but it is serialized. I've been following this guide:

https://www.learnwithjason.dev/blog/get-form-values-as-json

The structure of the json I want to send is this: { fullname: string, items[{ fruit: string,Category: string}]}

I get this instead : { fullname: string, fruit: string,Category: string }

Is there a simple way to group form inputs from the HTML so it could just be extracted and converted to give out a JSON output like that?.

about 4 years ago · Santiago Gelvez
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