Move Json input parsing in JsonInputFile and add a validation of the Json file structure.