Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "results": [
- {
- "id": 1,
- "category": "Venta",
- "amount_in_cents": 100
- },
- {
- "id": 2,
- "category": "Venta",
- "amount_in_cents": 50
- },
- {
- "id": 3,
- "category": "Depositos",
- "amount_in_cents": 200
- }
- JSONArray mJsonArray = response.getJSONArray("results");
- for (int i = 0; i < mJsonArray.length(); i++) {
- JSONObject mJsonObject = mJsonArray.getJSONObject(i);
- String categoria = mJsonObject.getString("category");
- Integer amount = mJsonObject.getInt("amount_in_cents");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement