如何将两个java数组拼接成json字符串 如下
String[]a1={"username","age","address"};String[]a2={"li","12","beijing","li","13","be...
String [] a1={"username","age","address"};
String [] a2={"li","12","beijing","li","13","beijing","li","14","beijing"};
拼接成如下json字符串
String jsonString ="{{'username':'li','age':'12','address':'beijing'},{'username':'li','age':'13','address':'beijing'},{'username':'li','age':'14','address':'beijing'}}";
用代码实现 展开
String [] a2={"li","12","beijing","li","13","beijing","li","14","beijing"};
拼接成如下json字符串
String jsonString ="{{'username':'li','age':'12','address':'beijing'},{'username':'li','age':'13','address':'beijing'},{'username':'li','age':'14','address':'beijing'}}";
用代码实现 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询