public class SafeJsonSerializer
extends Object
Constructor and Description |
---|
SafeJsonSerializer() |
Modifier and Type | Method and Description |
---|---|
static org.json4s.JsonAST.JValue |
safeDoubleToJValue(double value) |
static <T> org.json4s.JsonAST.JValue |
safeMapToJValue(java.util.Map<String,T> map,
scala.Function1<T,org.json4s.JsonAST.JValue> valueToJValue)
Convert map to JValue while handling empty maps.
|
public static org.json4s.JsonAST.JValue safeDoubleToJValue(double value)
public static <T> org.json4s.JsonAST.JValue safeMapToJValue(java.util.Map<String,T> map, scala.Function1<T,org.json4s.JsonAST.JValue> valueToJValue)