getting json parsing working