GetJsonData
仅需要一行代码就获取Json数据
1.不带请求参数
String jsondata= GetJsonData.excuteByget( "http://dxb.iwakeup.cn/posts");
2.带请求参数
Map<String,String> map = new HashMap<String,String>();map.put("body","test");map.put("detail","test");String jsondata1= GetJsonData.excuteByPost( "http://dxb.iwakeup.cn/posts?",map);
在根build.gradle 中添加
allprojects {repositories {...maven { url 'https://jitpack.io' }}}
在module的build.gradle中添加
compile'com.github.huminted:GetJsonData:v0.1'AS 3.0+implementation 'com.github.huminted:GetJsonData:v0.1'