Java JSONObject后首字母变小写的问题

时间:2025-02-16 12:29:35

public static String formatJson(String orgJson) {
  JSONObject jo = new JSONObject();
  try {
   JSONObject jsonObject = new JSONObject(orgJson);
   Iterator iterator = ();

   while (()) {
    String key = (String) ();
    char chars[] = ();
    if (() > 1 && ((0))) {
     chars[0] = (chars[0]);
    }

    Boolean bl = (key);
    if (bl) {
     (new String(chars), null);
    } else {
     Object object = (key);
     try {
      if (object instanceof Number) {
       // ("MainActivity-----------------",
       // "result:1");
       (new String(chars),
         ((Number) object).intValue());
      } else {
       // ("MainActivity-----------------",
       // "result:2");
       (new String(chars), (key));
      }
     } catch (Exception e) {
      (new String(chars), (key));
     }
    }
   }
  } catch (Exception e) {

   ();
  }
  return ();
 }