com.googlecode.fascinator.common.JsonObject.toJSONString()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中com.googlecode.fascinator.common.JsonObject.toJSONString()方法的一些代码示例,展示了JsonObject.toJSONString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonObject.toJSONString()方法的具体详情如下:
包路径:com.googlecode.fascinator.common.JsonObject
类名称:JsonObject
方法名:toJSONString

JsonObject.toJSONString介绍

暂无

代码示例

代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common

@Override
public String toString() {
  return toJSONString();
}

代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common

@Override
public String toJSONString() {
  return toJSONString(this);
}

代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common

public static String toString(String key, Object value) {
  StringBuffer sb = new StringBuffer();
  toJSONString(key, value, sb);
  return sb.toString();
}

代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common

public static String toJSONString(Map<?, ?> map) {
  if (map == null) {
    return "null";
  }
  StringBuffer sb = new StringBuffer();
  boolean first = true;
  Iterator<?> iter = map.entrySet().iterator();
  sb.append('{');
  while (iter.hasNext()) {
    if (first) {
      first = false;
    } else {
      sb.append(',');
    }
    Map.Entry<?, ?> entry = (Map.Entry<?, ?>) iter.next();
    toJSONString(String.valueOf(entry.getKey()), entry.getValue(), sb);
  }
  sb.append('}');
  return sb.toString();
}

代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common

/**
 * Return the String representation of this object's JSON, optionally
 * formatted for human readability.
 *
 * @return String : The JSON String
 */
public String toString(boolean pretty) {
  // Simple, just a plain old string
  if (!pretty) {
    return jsonObject.toJSONString();
  }
  // More complicated
  return printNode(null, getJsonObject(), "");
}

代码示例来源:origin: com.googlecode.the-fascinator.plugins/plugin-harvester-csv

log.debug(data.toJSONString());

代码示例来源:origin: com.googlecode.redbox-mint/redbox-reports

for (Object json: stats) {
  JsonObject jsonStat = (JsonObject) json;
  log.debug(jsonStat.toJSONString());
  String name = (String)jsonStat.get("name");
  Stat stat = null;

相关文章