start limiting where JSONObject is used; write() doesn't need to see
that object, just the string