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

158
Views
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 answers
Answer question

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 Report
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!