Continued modifying code to understand JSON files