Exception ex = null;
try{
StringWriter w = new StringWriter();
JSONWriter jWriter = new JSONWriter(w);
jWriter.object();
jWriter.key("foo");
jWriter.value((double)100.959);
jWriter.close();
String str = w.toString();
// Verify it parses.
JSONObject test = new JSONObject(str);