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

163
Vistas
Is passing a JSON between Javascript and Flask a secure way to convert a JSON to a CSV in flask?

On my flask app I want to create a feature so a user can query the database, have the browser display the results in a table and then download it in a csv.

Is the plan I have below secure? Would end users be able to manipulate the JSON?

My overall design plan to accomplish this is as follows in pseudocode:

  • (Python) pulls Query from database and puts results in JSON using JSONIFY

  • (Python) returns JSON to Javascript file

  • (Javascript) Displays the JSON in an HTML table

  • (Javascript) User clicks button and Javascript sends JSON to flask endpoint

  • (Python) Flask endpoint converts JSON into CSV

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Re-sending the JSON to the Flask server seems a useless waste of bandwidth (since the server already has this information). The Flask server should be able to generate a CSV representation, directly from the database query, for example using a csv.writer or csv.DictWriter object.

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