خرید بک لینک

Vote count: 0

When data come from JSON in the format below, I can tu it into a dictionary in Python. However, the information is not always in the same order. For instance, first_name, I would assume is always 0. However, when I get the data, depending on the form used, may be in the 2 position. So now, instead of storing first_name in the right db field, it may be in the email field.

Here's my question: how do I ensure the value matches the db field using the name key, value?

{
  "name": "first_name", 
  "values": [
    "Joe"
  ]
},
{
  "name":"last_name",
  "values": [
    "Example"
  ]
},
{
  "name": "email", 
  "values": [
    "[email protected]"
  ]
}

Thank you, as always! :-)

asked 28 secs ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 21 تير 1395 ساعت: 8:19

صفحه بندی