title: parsing json object to android string
body: <p>I have tried to parse a JSON object by lot of ways but can't figure out how to parse that.  </p>
  
  <p><strong>This is my json string:</strong></p>
  
  <pre><code> {
    "JSONDataResult":
  
          {"Messages":
                     [{ "Id":"0",
                        "Category":"Sport",
                        "Title":"It's a goal",
                        "Content":"sport content"
                      }]
          }
   }
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>        JSONArray arr = result.getJSONArray("Messages\\");
          for (int j = 0; i &lt; arr.length(); j++)
          {
              String post_id = arr.getJSONObject(i).getString("post_id");
              Id = result.getString("Id\\");
              Title = result.getString("Title\\");
              Content = result.getString("Content\\");   
          }
  </code></pre>