title: How to flatten properties inside json array in javascript?
body: <p>I tried some code to flatten but it flattens the whole json. My requirement is just to flatten only position property.</p>
  
  <p>I have following json array:</p>
  
  <pre><code>[{
  amount:"1 teine med 110 mtr iletau"
  comment:""
  created:"Tue May 17 2016 00:00:00 (W. Europe Standard Time)"
  locationDescription:"På vestsiden av Jeløya, utenfor Moss. (Oslofjorden)."
  position:{lat: 59.441388, lng: 10.579491}
  time:"15-05-2016"
  type:"Teine"
  userId:""
  },
  {
  amount:"1 teine med 110 mtr iletau"
  comment:""
  created:"Tue May 17 2016 00:00:00 (W. Europe Standard Time)"
  locationDescription:"På vestsiden av Jeløya, utenfor Moss. (Oslofjorden)."
  position:{lat: 59.441388, lng: 10.579491}
  time:"15-05-2016"
  type:"Teine"
  userId:""
  }]
  </code></pre>
  
  <p>I want output like:</p>
  
  <pre><code>[{
  amount:"1 teine med 110 mtr iletau"
  comment:""
  created:"Tue May 17 2016 00:00:00 (W. Europe Standard Time)"
  locationDescription:"På vestsiden av Jeløya, utenfor Moss. (Oslofjorden)."
  position.lat:59.441388, 
  position.lng: 10.579491,
  time:"15-05-2016"
  type:"Teine"
  userId:""
  },
  {
  amount:"1 teine med 110 mtr iletau"
  comment:""
  created:"Tue May 17 2016 00:00:00 (W. Europe Standard Time)"
  locationDescription:"På vestsiden av Jeløya, utenfor Moss. (Oslofjorden)."
  position.lat: 59.441388, 
  position.lng: 10.579491,
  time:"15-05-2016"
  type:"Teine"
  userId:""
  }]
  </code></pre>
  
  <p>Can someone suggests me how to achieve the above output in javascript ? </p>