@SuppressWarnings("unchecked")
	public static boolean write(String module, String className, int id,
			JSONObject json) {

		boolean success = false;

		try {
			String filePath = "assets/data/" + module + "/" + className + "_"
					+ id + ".json";
			final File file = new File(filePath);
			final File parent_directory = file.getParentFile();

			if (null != parent_directory) {
				parent_directory.mkdirs();
			}

			FileWriter writer = new FileWriter(file);
			writer.write(json.toJSONString());
			writer.flush();
			writer.close();
			success = true;

		} catch (IOException e) {
			e.printStackTrace();
		}

		System.out.print(json);
		return success;
	}