Added merging of json files.