0

JSON keys und value löschen, wenn schon verfügbar?

Hallo zusammen,

Wie kann ich json elemente löschen, wenn ich schon vorhanden in andere json. Bitte sehen Sie Details unter.

main_json hat 4 keys und 4 values, aber existing_json hat schon mal 2 keys und 2 values, die ist schon mal im main_json vorhanden.

main_json = { "Key1":"1", "Key2":"2", "Key3":"3", "Key4":"4"}

existings_json ={"Key1":"1", "Key2":"2"}

 

Und meine Erwartung Ergebnis ist so.

final_json ={"Key3":"3", "Key4":"4"}

Antwort

null