@@ -0,0 +1,1385 @@
+package in.tosc.ghumo;%0A%0Aimport android.content.Context;%0A%0Aimport com.google.gson.Gson;%0Aimport com.google.gson.JsonElement;%0A%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.util.ArrayList;%0A%0A/**%0A * Created by championswimmer on 22/8/15.%0A */%0Apublic class FareOps %7B%0A%0A    public ArrayList%3CFare%3E getFares(Context ctx) %7B%0A        ArrayList%3CFare%3E fares = new ArrayList%3C%3E();%0A        String jsonString = getJsonFromAssets(%22fares.json%22, ctx);%0A        try %7B%0A            JSONArray fareArr = new JSONArray(jsonString);%0A            Gson gson = new Gson();%0A            for (int i = 0; i %3C fareArr.length(); i++) %7B%0A                fares.add(gson.fromJson((fareArr.getJSONObject(i)).toString(), Fare.class));%0A            %7D%0A        %7D catch (JSONException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return fares;%0A    %7D%0A%0A    public String getJsonFromAssets (String assetFileName, Context c) %7B%0A        String json = null;%0A        try %7B%0A            InputStream is = c.getAssets().open(assetFileName);%0A            int size = is.available();%0A            byte%5B%5D buffer = new byte%5Bsize%5D;%0A            is.read(buffer);%0A            is.close();%0A            json = new String(buffer, %22UTF-8%22);%0A        %7D catch (IOException ex) %7B%0A            ex.printStackTrace();%0A            return null;%0A        %7D%0A        return json;%0A    %7D%0A%7D%0A

add method to read the fares