@@ -0,0 +1,1678 @@
+package edu.grinnell.tranchri.cohnhan.deweytyl.hardtmad;%0A%0A/**%0A * JSONParser Class%0A * %0A * @author Hannah Cohn%0A * @author Ty Dewey%0A * @author Madeleine Hardt%0A * @author Christine Tran%0A */%0A%0Apublic class JSONParser%0A%7B%0A  // +--------+----------------------------------------------%0A  // %7C Fields %7C%0A  // +--------+%0A%0A  String jString;%0A  JSONValue jValue;%0A%0A  // +--------------+----------------------------------------%0A  // %7C Constructors %7C%0A  // +--------------+%0A%0A  public JSONParser(String input)%0A  %7B%0A    jString = input;%0A  %7D // JSONParser (String)%0A%0A  public JSONParser(JSONValue obj)%0A  %7B%0A    jValue = obj;%0A  %7D // JSONParser (JSONValue)%0A%0A  // +---------------+---------------------------------------%0A  // %7C Class Methods %7C%0A  // +---------------+%0A%0A  public Object JSONToJavaObject()%0A    throws Exception%0A  %7B%0A    this.jValue = JSONUtils.parseValue(jString);%0A    char type = jValue.type();%0A    switch (type)%0A      %7B%0A        case 'n':%0A          return JSONUtils.getNumber(jValue);%0A        case 's':%0A          return JSONUtils.getString(jValue);%0A        case 'c':%0A          %7B%0A            String str = JSONUtils.getString(jValue);%0A            if (str.equals(%22true%22))%0A              return true;%0A            else if (str.equals(%22false%22))%0A              return false;%0A            else%0A              return null;%0A          %7D // case 'c'%0A        case 'a':%0A          return JSONUtils.getArray(jValue);%0A        case 'o':%0A          return JSONUtils.getObject(jValue);%0A      %7D // switch%0A%0A    throw new Exception(%22Unsupported String%22 + jString);%0A%0A  %7D // JSONToJavaObject()%0A%0A  public String JavaObjectToStringOfJSON()%0A    throws Exception%0A  %7B%0A    %0A    return jString;%0A  %7D // JavaObjectToStringOfJSON()%0A%0A%7D%0A

Add framework for parser object and String to Object method