json1 = {
      "color": "#101017",
      "fontSize": "15px",
      "h1": {
        "color": "#101017",
        "fontSize": "32px"
      }
}
json2 = {
     "h1": {
        "color": "blue"
     }
}
And output should be
json = {
      "color": "#101017",
      "fontSize": "15px",
      "h1": {
        "color": "blue",
        "fontSize": "32px"
      }
}
I was trying to merge two json where second one overrides the first one with a native way in javascript.
 
     
     
    