You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@szymon-rd turns out this has worked all along :) so just doing .body(ujson) should do the trick, without having to specify the content type manually or invoking .write. Provided, of coure, the the ujson+sttp import is in place: import sttp.client4.upicklejson._
E.g. for
ujson.Obj
, so that in the example in https://scala-lang.org/blog/2023/06/20/toolkit.html we could do simply.body(ujson)
instead ofShould be the same for other JSON libs
The text was updated successfully, but these errors were encountered: