当前位置: 首页>>代码示例>>Java>>正文


Java JSONValue.writeJSONString方法代码示例

本文整理汇总了Java中org.json.simple.JSONValue.writeJSONString方法的典型用法代码示例。如果您正苦于以下问题:Java JSONValue.writeJSONString方法的具体用法?Java JSONValue.writeJSONString怎么用?Java JSONValue.writeJSONString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.json.simple.JSONValue的用法示例。


在下文中一共展示了JSONValue.writeJSONString方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("name",name);
    obj.put("amount",amount);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:Ranks.java

示例2: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, String> obj = new LinkedHashMap<String, String>();
    obj.put("name", name);
    obj.put("permission", permission);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:Perm.java

示例3: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, String> obj = new LinkedHashMap<String, String>();
    obj.put("user",name);
    obj.put("rank",rank);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:RankUser.java

示例4: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, String> obj = new LinkedHashMap<String, String>();
    obj.put("command", command);
    obj.put("permission", permission);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:CommandPerm.java

示例5: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("number",number);
    obj.put("quote", quote);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:Quote.java

示例6: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("number",number);
    obj.put("note", note);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:Note.java

示例7: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("id", raffleID);
    obj.put("user", user);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:Raffle.java

示例8: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("number", number);
    obj.put("message", message);
    obj.put("toggle", toggle);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:9,代码来源:Schedule.java

示例9: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, String> obj = new LinkedHashMap<String, String>();
    obj.put("command", command);
    obj.put("response", response);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:Command.java

示例10: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer out) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("request",requester);
    obj.put("number", number);
    obj.put("link",link);
    obj.put("title",title);
    obj.put("uploader",uploader);
    obj.put("duration",duration);
    JSONValue.writeJSONString(obj,out);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:12,代码来源:SongRequest.java

示例11: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, java.io.Serializable> obj = new LinkedHashMap<String, java.io.Serializable>();
    obj.put("user",name);
    obj.put("amount", amount);
    JSONValue.writeJSONString(obj, writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:8,代码来源:User.java

示例12: writeJSONString

import org.json.simple.JSONValue; //导入方法依赖的package包/类
@Override
public void writeJSONString(Writer writer) throws IOException {
    LinkedHashMap<String, String> obj = new LinkedHashMap<String, String>();
    obj.put("user",user);
    JSONValue.writeJSONString(obj,writer);
}
 
开发者ID:lorddusk,项目名称:DuskBot,代码行数:7,代码来源:Blacklist.java


注:本文中的org.json.simple.JSONValue.writeJSONString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。