How to check if a key exists in Json Object and get its value : <p>Let say this is my <code>JSON Object</code></p>

<pre><code>{
  "LabelData": {
    "slogan": "AWAKEN YOUR SENSES",
    "jobsearch": "JOB SEARCH",
    "contact": "CONTACT",
    "video": "ENCHANTING BEACHSCAPES",
    "createprofile": "CREATE PROFILE"
  }
}
</code></pre>

<p>I need to know that either 'video` exists or not in this Object, and if it exists i need to get the value of this key. I have tried following, but i am unable to get value of this key.</p>

<pre><code> containerObject= new JSONObject(container);
 if(containerObject.hasKey("video")){
  //get Value of video
}
</code></pre>
