@SuppressWarnings("unchecked")
public <T> T parse(CharSequence s, Type type) throws JSONException {
T value = null;
try {
Context context = new Context();
value = (T)convert(context, parseInternal(context, new CharSequenceInputSource(s)), type);
} catch (IOException e) {
// never occur
}
return value;
}