json parsing to objects working