Java实现Json转GET请求字符串

原文链接:https://blog.csdn.net/tcctcszhanghao/article/details/105518893

/**
* json格式转Get
* @param body
* @return
*/
private String jsonToGet(String body){
return body.replace("{", "").replace("}", "").
replace("\"", "").replace("'", "").
replace(":", "=").replace(",", "&");
}

posted @ 2020-12-14 17:26  枫树湾河桥  阅读(819)  评论(0编辑  收藏  举报
Live2D