nisrulz/OptimusHTTP

Send only json in post request

开放

#7 创建于 2016年9月28日

 (3 条评论) (0 个反应) (0 位负责人)Java (9 个派生)github user discovery
Hacktoberfestenhancement

仓库指标

星标
 (37 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

How can I send only json in post request?

I'm using ArrayMap<String, String> params = new ArrayMap<String, String>(); String jsonParam = gson.toJson(param); params.put("", jsonParam); But the request is send with = symbol Example: ={test:"test"}

I already put the OptimusHttp.CONTENT_TYPE_JSON, but the "=" still appear

贡献者指南