fixed JSON tranversal and syntax mistake