Resolving bug when importing json files

When plotting with imported json files some values were not used correctly.