title: How to add key value pair in an JSON dynamically using Lodash or JS in reactJS?
body: <p>I have JSON like this:</p>
  
  <pre><code>let json = {
     data:[
       {value1: 1},
       {Value2: 2}
     ]
  }
  
  maths:100
  science:100
  </code></pre>
  
  <p>I need to add these two key value pairs to the json:</p>
  
  <pre><code>let json = {
        data:[
          {value1:1},
          {Value2:2}
        ],
        maths:100,
        science:100
  }
  </code></pre>