json parse (code must be refined, but it is already working)