sttp.client4.JsonInput.scala Maven / Gradle / Ivy
The newest version!
package sttp.client4
protected[sttp] object JsonInput {
def sanitize[T: IsOption]: String => String = { s =>
if (implicitly[IsOption[T]].isOption && s.trim.isEmpty) "null" else s
}
}