All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.json4s.jackson.JValueSerializerResolver.scala Maven / Gradle / Ivy

There is a newer version: 4.1.0-M7
Show newest version
package org.json4s
package jackson

import com.fasterxml.jackson.databind.ser.Serializers
import com.fasterxml.jackson.databind.{BeanDescription, JavaType, SerializationConfig}

private object JValueSerializerResolver extends Serializers.Base {
  private val JVALUE = classOf[JValue]
  override def findSerializer(config: SerializationConfig, theType: JavaType, beanDesc: BeanDescription) = {
    if (!JVALUE.isAssignableFrom(theType.getRawClass)) null
    else new JValueSerializer
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy