implementing my json parsing