trying json parsing and fixing index / page