implementing json parsing library