Khushal/Pooja: Added backend logic to return a json object to be consumed by defect analysis view and a base defect analysis view