@@ -0,0 +1,1535 @@
+package edu.grinnell.tranchri.cohnhan.deweytyl.hardtmad;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.PrintWriter;%0A%0A/**%0A * Some simple experiments with JSON.%0A */%0Apublic class samstests%0A%7B%0A  /**%0A   * One experiment.  Print a JSON string.  Parse the string.  Print the%0A   * parsed version.%0A   */%0A  public static void expt(PrintWriter pen, String str)%0A    throws Exception%0A  %7B%0A    JSONParser parser = new JSONParser(str);%0A    pen.println(%22Input:    %22 + str);%0A    Object obj = parser.JSONToJavaObject();%0A    pen.println(%22Parsed:   %22 + obj);%0A    %0A    JSONParser parser2 = new JSONParser(obj);%0A    String json = parser2.JavaObjectToStringOfJSON();%0A    pen.println(%22Unparsed: %22 + json);%0A    %0A    parser.jString = json;%0A    obj = parser.JSONToJavaObject();%0A    pen.println(%22Reparsed: %22 + obj);%0A    %0A    json = parser2.JavaObjectToStringOfJSON();%0A    pen.println(%22Unparsed: %22 + json);%0A    pen.println();%0A  %7D // expt(String)%0A%0A  /**%0A   * A host of experiments.%0A   */%0A  public static void main(String%5B%5D args)%0A    throws Exception%0A  %7B%0A    PrintWriter pen = new PrintWriter(System.out, true);%0A    expt(pen, %2211%22);%0A    expt(pen, %220.2%22);%0A    expt(pen, %22%5C%22Hello%5C%22%22);%0A    expt(pen, %22%5Bnull,true,false%5D%22);%0A    expt(pen, %22%5Bnull,%5Btrue,false%5D,%5B%5D,%5B%5C%22a%5C%22,%5C%22b%5C%22%5D%5D%22);%0A    expt(pen, %22%5C%22%5C%5C%5C%22%5C%22%22);%0A    expt(pen, %22%7B%5C%22a%5C%22:%5C%22alpha%5C%22,%5C%22b%5C%22:%5C%22beta%5C%22%7D%22);%0A    expt(pen, %22%7B%5C%22a%5C%22:%5C%22alpha%5C%22,%5C%22b%5C%22:%7B%5C%22a%5C%22:%5C%22alpha%5C%22,%5C%22b%5C%22:%5C%22beta%5C%22%7D%7D%22);%0A    expt(pen,%0A         %22%7B%5C%22a%5C%22:%5C%22alpha%5C%22,%5C%22b%5C%22:%7B%5C%22a%5C%22:%5C%22alpha%5C%22,%5C%22b%5C%22:%5C%22beta%5C%22%7D,%5C%22c%5C%22:%7B%7D,%5C%22d%5C%22:%5C%22d%5C%22%7D%22);%0A  %7D // main(String%5B%5D)%0A%7D // JSONExpt

add sam's tests