Refactor the initialization of the channel data from the JSON

Copy the data retrieved from the JSON data files only after the
contents of the two JSON configuration files have been read
successfully.

The code has also been changed to eliminate excess indentation in
order to improve its readability and maintainability.

Change-Id: I2def95b854bef39a9e7b196ef340c3a06965653a
Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
2 files changed