public static void set(String filePath, Map<String, Object> json) {
		if (! filePath.endsWith(".json")) {
			filePath += ".json";
		}
		
		
		try {
			FileOutputStream output = new FileOutputStream(filePath); // Open the file we are saving to.
			String content = generator.generateJson(json);
			
			output.write(content.getBytes()); // Convert the json string to bytes.
			output.close(); // Close the file we're saving to.

			if (jsonMap.containsKey(filePath)) { // Check if the file we are saving is cached.
				// If so, update the cache.
				jsonMap.put(filePath, json);
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}