@Test public void testString() { JSONObject object = JSONUtils.parse("{\"id\":3}"); assertEquals((long)3, object.get("id")); }
public static JSONObject parse(String input) { try { return (JSONObject) JSONValue.parseWithException(input); } catch (ParseException e) { throw new SqoopException(SerializationError.SERIALIZATION_002, e); } }
JSONUtils { public static JSONObject parse(String input) { try { return (JSONObject) JSONValue.parseWithException(input); } catch (ParseException e) { throw new SqoopException(SerializationError.SERIALIZATION_002, e); } } }
JSONUtils { public static JSONObject parse(String input) { try { return (JSONObject) JSONValue.parseWithException(input); } catch (ParseException e) { throw new SqoopException(SerializationError.SERIALIZATION_002, e); } } private  JSONUtils(); }
JSONUtils { public static JSONObject parse(String input) { try { return (JSONObject) JSONValue.parseWithException(input); } catch (ParseException e) { throw new SqoopException(SerializationError.SERIALIZATION_002, e); } } private  JSONUtils(); static JSONObject parse(String input); static JSONObject parse(Reader reader); }
JSONUtils { public static JSONObject parse(String input) { try { return (JSONObject) JSONValue.parseWithException(input); } catch (ParseException e) { throw new SqoopException(SerializationError.SERIALIZATION_002, e); } } private  JSONUtils(); static JSONObject parse(String input); static JSONObject parse(Reader reader);  }