Added methods for parsing file and set JSON.