I don't know why my dictionary object cannot show as correct order.
with open("data.txt", "r") as data:
for line in data:
json_line = json.loads(line.strip())
if json_line["Product_ID"] == id:
return jsonify(json_line), 200
Original order is
{"Product_ID": "010", "Product_dec": "orange", "price": 21, "Quantity": 2}
But the output is
{"Product_ID": "010", "Product_dec": "orange", "Quantity": 2, "price": 21}