本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}