refactor parsing JSON