Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ public class TaskAction {

String taskJsons;
static String JsonStr = "{object:{tasks:" +
"[{name:'�Ǻ�',image:'http://10.0.159.132:8080/Web/s1.png'}," +
"{name:'����',image:'http://10.0.159.132:8080/Web/s1.png'}," +
"{name:'�ٺ�',image:'http://10.0.159.132:8080/Web/s2.jpg'}]}}";
"[{name:'呵啊呵',image:'http://10.0.159.132:8080/Web/s1.png'}," +
"{name:'哈啊哈',image:'http://10.0.159.132:8080/Web/s1.png'}," +
"{name:'嘿啊嘿',image:'http://10.0.159.132:8080/Web/s2.jpg'}]}}";

public static void main(String[] args) throws Exception {

//����һ��Hash������������
//声明一个Hash对象并添加数据
Map params = new HashMap();

params.put("username", "xx");
params.put("user_json", "yy");



//����JSONArray��������JSON�ַ���
//声明JSONArray对象并输入JSON字符串
JSONArray array = JSONArray.fromObject(new Task());


Expand Down