import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * 
 * @author lunatic 2014年7月26日
 */
public class JSON {

	private static Parser parser = new Parser();

	public static Object parse(String text) {
		return parser.parse(text);
	}

	public static Object fromString(String text) {
		return parser.parse(text);
	}
	public static Object fromFile(String filename) throws FileNotFoundException, IOException {
		return parser.parse(U.read(new FileReader(filename)));
	}
	public static void main(String[] args) throws FileNotFoundException,
			IOException {
		String text = "{\"firstName\":\"Brett\",\"lastName\":\"McLaughlin\",\"email\":\"aaaa\\\"bbbb\", \"age\":18, \"sex\":true, \"wife\":null}";

		JsonObject jo = (JsonObject) parse(text);
		System.out.println(text);
		System.out.println(jo.toString());
	}

}

@@ -508,349 +508,8 @@
 ;%0A%09%7D
-%0A%09public static void main(String%5B%5D args) throws FileNotFoundException,%0A%09%09%09IOException %7B%0A%09%09String text = %22%7B%5C%22firstName%5C%22:%5C%22Brett%5C%22,%5C%22lastName%5C%22:%5C%22McLaughlin%5C%22,%5C%22email%5C%22:%5C%22aaaa%5C%5C%5C%22bbbb%5C%22, %5C%22age%5C%22:18, %5C%22sex%5C%22:true, %5C%22wife%5C%22:null%7D%22;%0A%0A%09%09JsonObject jo = (JsonObject) parse(text);%0A%09%09System.out.println(text);%0A%09%09System.out.println(jo.toString());%0A%09%7D
 %0A%0A%7D%0A

delete main