I'm trying to read JSON from string (obtained from web), but it returns `null`.

Specifically, `result.append(name + id);` gives me `nullnull`

```
JSONParser parser = new JSONParser();
try {
    Object obj = parser.parse(datJ);
    JSONObject jsonObject = (JSONObject) obj;
    String name = (String) jsonObject.get("name");
    Integer id = (Integer) jsonObject.get("id");
    result.append(name + id);

} catch (MalformedURLException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
} catch (IOException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
} catch (org.json.simple.parser.ParseException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
}  

```

Consider that `datJ` contains following JSON string:

```
{
    "rikeard":{
        "id":2828822,
        "name":"Rikeard",
        "profileIconId":688,
        "summonerLevel":30,
        "revisionDate":1422917445000
    }
}

```

EDIT: Final code working

```
JSONParser parser = new JSONParser();
        try {
            String datJ = IOUtils.toString(new URL(url));
             Object obj = parser.parse(datJ);
                JSONObject rikeardObject = (JSONObject) ((Map<?, ?>) obj).get("rikeard");
                String name = (String) rikeardObject.get("name");
                Long id = (Long) rikeardObject.get("id");

```

**Special Thanks for Sufian and Ved!**