I have two dictionary's convert into single dictionary with different keys and values,can anyone solve this one?
Two inputs: input_1 = [ { "pageId":"block", "pageTitle":"Title 1", "description":"description 1", "url":"some.s3.url" }, { "pageId":"warning", "pageTitle":"Title 2", "description":"description 2", "url":"some.s3.url" }, { "pageId":"security", "pageTitle":"Title 3", "description":"description 3", "url":"some.s3.url" } ] input_2 = { "block":{ "pageTitle":"Updated Title 1", "description":"Updated description 1", }, "warning":{ "pageTitle":"Updated Title 2", "description":"Updated description 2", }, "security":{ "pageTitle":"Updated Title 3", "description":"Updated description 3", } } This is the Output i want : output = [ { "pageId":"block", "pageTitle":"Updated Title 1", "description":"Updated description 1", "url":"some.s3.url" }, { "pageId":"warning", "pageTitle":"Updated Title 2", "description":"Updated description 2", "url":"some.s3.url" }, { "pageId":"security", "pageTitle":"Updated Title 3", "description":"Updated description 3", "url":"some.s3.url" } ]