### Question:
FromJson { public static Object fromJson(String string) { return new JsonParser(string).parse(); }  static Object fromJson(String string);  }### Answer:
@Test public void fromJson() { String string = "{\n \"glossary\": {\n \"title\": \"example glossary\",\n \"GlossDiv\": {\n \"title\":" + " \"S\",\n \"GlossList\": {\n \"GlossEntry\": {\n \"ID\": \"SGML\",\n" + " \"SortAs\": \"SGML\",\n \"GlossTerm\": \"Standard Generalized Markup Language\",\n" + " \"Acronym\": \"SGML\",\n \"Abbrev\": \"ISO 8879:1986\",\n \"GlossDef\": {\n" + " \"para\": \"A meta-markup language, used to create markup languages such as DocBook.\",\n" + " \"GlossSeeAlso\": [\n \"GML\",\n \"XML\"\n ]\n" + " },\n \"GlossSee\": \"markup\"\n }\n }\n }\n }\n}"; assertEquals("{glossary={title=example glossary, GlossDiv={title=S, GlossList={GlossEntry=" + "{ID=SGML, SortAs=SGML, GlossTerm=Standard Generalized Markup Language, Acronym=SGML," + " Abbrev=ISO 8879:1986, GlossDef={para=A meta-markup language, used to create markup" + " languages such as DocBook., GlossSeeAlso=[GML, XML]}, GlossSee=markup}}}}}", FromJson.fromJson(string).toString()); }