title: Create a instance for a JSON and access the values in Kotlin
body: <p>I have a use case where I need to create an instance variable for the below JSON object and access the values of it using the get method</p>
  <pre><code>{
    &quot;id&quot; : &quot;12345&quot;,
    &quot;pid&quot; : &quot;a245vkkb&quot;,
    &quot;fid&quot; : &quot;9087hbnh&quot;
  }
  </code></pre>
  <p>I have the code which returns the above JSON values. Is there any way to create an instance for that in one class and use (eg: pid), getPID() to fetch the pid value in KOTLIN? Which should only return the pid value.</p>