@@ -0,0 +1,1160 @@
+package com.andela.webservice.parser;%0A%0Aimport com.andela.webservice.model.Flower;%0A%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by Spykins on 08/06/16.%0A */%0Apublic class FlowerJsonParser %7B%0A%0A    public static List%3CFlower%3E parseFeed(String content) %7B%0A        List%3CFlower%3E flowerList = new ArrayList%3C%3E();%0A        try %7B%0A            JSONArray ar = new JSONArray(content);%0A            // we can't use for  each loop on JSonArray%0A            for(int i = 0; i %3C ar.length(); i++) %7B%0A                JSONObject obj = ar.getJSONObject(i);%0A                Flower flower = new Flower();%0A                flower.setProductId(obj.getInt(%22productId%22));%0A                flower.setCategory(obj.getString(%22category%22));%0A                flower.setInstructions(obj.getString(%22instructions%22));%0A                flower.setPhoto(obj.getString(%22photo%22));%0A                flower.setPrice(obj.getDouble(%22price%22));%0A                flowerList.add(flower);%0A            %7D%0A        %7D catch (JSONException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return flowerList;%0A    %7D%0A%7D%0A

Implement JsonParser to read the data