added json parsing to activity