question: public JSONObject toJson ( ) throws JSONException { JSONObject json = new JSONObject ( ) ; JSONArray jpods = new JSONArray ( ) ; for ( DiasporaPod pod : pods ) { jpods . put ( pod . toJson ( ) ) ; } json . put ( "pods" , jpods ) ; json . put ( "timestamp" , System . currentTimeMillis ( ) ) ; return json ; }
target:  Convert DiasporaPodList to JSON