我想将此 Json 字符串转换为数组。我的哈希图名为“HAHSMRM”,这是我的 Json 字符串:[ {"id":1,"name":"hamid"}, {"id":2,"name":"mohamad"}, {"id":3,"name":"ali"}, {"id":4,"name":"john"}, {"id":5,"name":"smith"}]我想将此 Json 字符串转换为这样的数组String myJsonstring ="[{"id":1,"name":"hamid"},{"id":2,"name":"mohamad"},{"id":3,"name":"ali"},{"id":4,"name":"john"},{"id":5,"name":"smith"}]";string[] AA = Jsons.....int i =0;while(i<string.lenght){ HASHMRM.put(AA[i].split()//First, AA[i].split()//second); i++;}
添加回答
举报
0/150
提交
取消