mardi 12 mars 2019

How to update the keyvalue pairs in a nested json array through Python

am trying to update keyvalue under parity nested array.

obj = {"keytab":178,
        "Symcom":"GGH397805000",
        "KeyIt":25558585,
        "ParityJSON": [
             {
             "NAME":"spacedpar",
             "value":5
                            },

                            {
                              "Name": "Parity",
                              "Value": [

                                 {
                                  "Symcom": "301101019",
                                  "KeyIt": 1417
                            }

                            {
                                  "Symcom": "301101017",
                                  "KeyIt": 8958
                            }
                              ]
                            }
                          ]


 }

Aucun commentaire:

Enregistrer un commentaire