trait
ExtJson extends Any
Abstract Value Members
-
abstract
def
fromJson(valueType: Field, jp: JsonParser, ext: Boolean, hint: String): Any
-
abstract
def
getClass(): Class[_]
-
abstract
def
toJson(obj: Any): String
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
equals(arg0: Any): Boolean
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
toString(): String
Mix this trait into a value class' companion object to enable an optional ability for extended JSON rendering/reading. If you have this trait mixed you can toggle the extended rendering and reading with the optional 'ext' (Boolean) field in ScalaJack's read and render functions.
Note we must account for both unboxed and value class instances due to how Scala may or may not actually instantiate a value class.