fixed snapshot json parsing