Improve json encode/decode api

This commit is contained in:
Andrey Antukh
2022-12-07 14:43:07 +01:00
parent 9debfa3b27
commit d584ae5a0f
8 changed files with 27 additions and 27 deletions

View File

@@ -81,7 +81,7 @@
{:method :post
:uri (cf/get :telemetry-uri)
:headers {"content-type" "application/json"}
:body (json/write-str data)}
:body (json/encode-str data)}
{:sync? true})]
(when (> (:status response) 206)
(ex/raise :type :internal