python – Json data with different keys

I am trying to store two run options in Json. My attempt is as below. Is this a sensible way to organise Json object? Also how can I read either of them into tuples? I tried tuple([(item['opt_one'],item['val_one']) for item in config['opts']]) but git a key error. Many thanks for your help.

"opts":[
    {
        "opt_one": "one_option",
        "val_one" : "value_one"
     },
     {
        "opt_two": "two_option",
        "val_two" : "value_two"
      }
      ]

Answer

# or it can be done in 1 line
print(tuple(map(lambda v: tuple(v.values()), J['opts'])))