Adding json file functinallity.