1
I’m a Python beginner and a hint to get only one value from the following Json.
{
"test1":"valortest1",
"test2":"valortest2",
"test3":"valortest3",
"test1":"valortest1"
}
Use to get json as follows in flask. data = request.get_data()
I get the complete file as a return by printing the given variable, but I would like to handle this better by printing only the value2.
What would be the best way to accomplish this process?
can use
request.form['test1']
– tomasantunes