private void writeObject(JSONObject jsonobject) throws JSONException {
  boolean first=true;
  Iterator keys=jsonobject.keys();
  while (keys.hasNext()) {
    if (probe) {
      log("\n");
    }
    Object key=keys.next();
    if (key instanceof String) {
      if (first) {
        first=false;
        write(zipObject,3);
      }
 else {
        one();
      }
      writeName((String)key);
      Object value=jsonobject.get((String)key);
      if (value instanceof String) {
        zero();
        writeString((String)value);
      }
 else {
        one();
        writeValue(value);
      }
    }
  }
  if (first) {
    write(zipEmptyObject,3);
  }
 else {
    zero();
  }
}

private void writeObject ( JSONObject jsonobject ) throws JSONException { boolean first = true ; Iterator keys = jsonobject . keys ( ) ; while ( keys . hasNext ( ) ) { if ( probe ) { log ( "\n" ) ; } Object key = keys . next ( ) ; if ( key instanceof String ) { if ( first ) { first = false ; write ( zipObject , 3 ) ; } else { one ( ) ; } writeName ( ( String ) key ) ; Object value = jsonobject . get ( ( String ) key ) ; if ( value instanceof String ) { zero ( ) ; writeString ( ( String ) value ) ; } else { one ( ) ; writeValue ( value ) ; } } } if ( first ) { write ( zipEmptyObject , 3 ) ; } else { zero ( ) ; } }
write a json object .
