nisrulz/OptimusHTTP

Send only json in post request

オープン

#7 opened on 2016/09/28

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Java (9 件のフォーク)github user discovery
Hacktoberfestenhancement

Repository metrics

Stars
 (37 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド