Further refactored reading JSON from file.
Further refactored reading JSON from file.