I have a JSON Object I want to parse at this URL <https://api.adviceslip.com/advice> with this content:
{"slip": { "id": 137, "advice": "You're not that important; it's what you do that counts."}}

I have written this code in Android Studio but it does not seem to work.

```
String jsonString = handler.httpServiceCall(url);
            if (jsonString != null) {
                try {
                    JSONObject jsonObject = new JSONObject(jsonString);

                    JSONObject slip = jsonObject.getJSONObject("slip");

                    String id = slip.getString("id");
                    Log.d("slip id:", id);
                    String advice = slip.getString("advice");
                    Log.d("slip adv:", advice);
                    HashMap<String, String> map = new HashMap<>();
                    map.put("id", id);
                    map.put("advice", advice);
                    adviceSlip.setText(map.get("advice"));

                }

```

Any help would be appreciated :)