public static void main(String [] arg) throws UnsupportedEncodingException, IOException
{
JSONObject a=JSONObject.fromObject("{a=9}");
FileOutputStream fos=new FileOutputStream("D:/1.txt");
fos.write(a.toString().getBytes("UTF-8"));
fos.flush();
fos.close();
}