title: How to create json object using com.google.gson class
body: <p>I'm trying to convert jsonArray with jsonObject by passing another jsonObject. Any sample code please?</p>
  
  <pre><code>{
  "role": "CUSTOMER",
  "operationId": "updateHomePlace",
  "parameters": {
      "tcId": "f44015c8-d672-411b-a0f9-49cf9ef3f6b2",
      "otpVerification": "false",
      "password": "false",
      "homePlace": [{
          "address": "MIG 528, KPHB 1st Phase,, Kukatpally Housing Board Colony, Kukatpally, Hyderabad, Telangana 500072, India",
          "lat": "17.4866943",
          "lng": "78.3994029"
      }]
  }
  }
  </code></pre>