object Implicits
Provides type classes for javax.json
and implicit implementations of
JsonOutput
and JsonInput
.
- Alphabetic
- By Inheritance
- Implicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit final
class
JsonArrayBuilderType extends AnyVal
Provides extension methods to
javax.json.JsonArrayBuilder
.Provides extension methods to
javax.json.JsonArrayBuilder
.- See also
-
implicit final
class
JsonArrayType extends AnyVal
Provides extension methods to
javax.json.JsonArray
.Provides extension methods to
javax.json.JsonArray
.- See also
-
implicit final
class
JsonGeneratorType extends AnyVal
Provides extension methods to
javax.json.stream.JsonGenerator
.Provides extension methods to
javax.json.stream.JsonGenerator
.- See also
-
implicit final
class
JsonObjectBuilderType extends AnyVal
Provides extension methods to
javax.json.JsonObjectBuilder
.Provides extension methods to
javax.json.JsonObjectBuilder
.- See also
-
implicit final
class
JsonObjectType extends AnyVal
Provides extension methods to
javax.json.JsonObject
.Provides extension methods to
javax.json.JsonObject
.- See also
-
implicit final
class
JsonParserType extends AnyVal
Provides extension methods to
javax.json.stream.JsonParser
.Provides extension methods to
javax.json.stream.JsonParser
.- See also
-
implicit final
class
JsonValueType extends AnyVal
Provides extension methods to
javax.json.JsonValue
.Provides extension methods to
javax.json.JsonValue
.- See also
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
arrayJsonOutput[T](implicit output: JsonOutput[T]): JsonOutput[Array[T]]
Creates JsonOutput for converting Array to JsonArray.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
def
asJson[T](value: T)(implicit output: JsonOutput[T]): JsonValue
Converts value of type T to JsonValue.
-
implicit
val
bigDecimalJsonInput: JsonInput[BigDecimal]
Converts JsonValue to BigDecimal.
-
implicit
val
bigDecimalJsonOutput: JsonOutput[BigDecimal]
Converts BigDecimal to JsonValue.
-
implicit
val
bigIntJsonInput: JsonInput[BigInt]
Converts JsonValue to BigInt (exact).
-
implicit
val
bigIntJsonOutput: JsonOutput[BigInt]
Converts BigInt to JsonValue.
-
implicit
val
booleanJsonInput: JsonInput[Boolean]
Converts JsonValue to Boolean.
-
implicit
val
booleanJsonOutput: JsonOutput[Boolean]
Converts Boolean to JsonValue.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
implicit
def
collectionJsonInput[A, M[A]](implicit input: JsonInput[A], build: CanBuildFrom[Nothing, A, M[A]]): JsonInput[M[A]]
Creates JsonInput for converting JsonArray to collection.
-
implicit
def
containerAsJson[A, M[A]](value: M[A])(implicit output: JsonOutput[M[A]]): JsonValue
Converts M[A] to JsonValue.
-
implicit
val
doubleJsonInput: JsonInput[Double]
Converts JsonValue to Double.
-
implicit
val
doubleJsonOutput: JsonOutput[Double]
Converts Double to JsonValue.
-
implicit
def
eitherAsJson[A, B](value: Either[A, B])(implicit left: JsonOutput[A], right: JsonOutput[B]): JsonValue
Converts Either[A, B] to JsonValue.
-
implicit
def
eitherJsonInput[A, B](implicit left: JsonInput[A], right: JsonInput[B]): JsonInput[Either[A, B]]
Creates JsonInput for converting JsonValue to Either.
Creates JsonInput for converting JsonValue to Either.
An attempt is made to first convert the value to Right value. If that attempt fails, then an attempt is made to convert it to Left value.
-
implicit
def
eitherJsonOutput[A, B, M[A, B] <: Either[A, B]](implicit left: JsonOutput[A], right: JsonOutput[B]): JsonOutput[M[A, B]]
Creates JsonOutput for converting Either to JsonValue.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
implicit
val
floatJsonInput: JsonInput[Float]
Converts JsonValue to Float.
-
implicit
val
floatJsonOutput: JsonOutput[Float]
Converts Float to JsonValue.
-
implicit
def
genTraversableOnceJsonOutput[A, M[A] <: GenTraversableOnce[A]](implicit output: JsonOutput[A]): JsonOutput[M[A]]
Creates JsonOutput for converting GenTraversableOnce to JsonArray.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
implicit
val
intJsonInput: JsonInput[Int]
Converts JsonValue to Int (exact).
-
implicit
val
intJsonOutput: JsonOutput[Int]
Converts Int to JsonValue.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
val
longJsonInput: JsonInput[Long]
Converts JsonValue to Long (exact).
-
implicit
val
longJsonOutput: JsonOutput[Long]
Converts Long to JsonValue.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
implicit
def
optionJsonInput[T](implicit input: JsonInput[T]): JsonInput[Option[T]]
Creates JsonInput for converting JsonValue to Option.
Creates JsonInput for converting JsonValue to Option.
The instance of
JsonInput
returnsSome
if the value is successfully converted, andNone
if the value is JSON null (i.e.,JsonValue.NULL
); otherwise it throws the exception thrown by the implicitinput
.Note: This behavior is different from JsonValueType.asOption, which returns
Some
if the value is successfully converted and returnsNone
if the value is JSON null or if an exception was thrown during conversion. -
implicit
def
optionJsonOutput[A, M[A] <: Option[A]](implicit output: JsonOutput[A]): JsonOutput[M[A]]
Creates JsonOutput for converting Option to JsonValue.
-
implicit
val
shortJsonInput: JsonInput[Short]
Converts JsonValue to Short (exact).
-
implicit
val
shortJsonOutput: JsonOutput[Short]
Converts Short to JsonValue.
-
implicit
def
stringArrayAsJson(values: Array[String])(implicit output: JsonOutput[Array[String]]): JsonValue
Converts Array[String] to JsonValue.
-
implicit
val
stringJsonInput: JsonInput[String]
Converts JsonValue to String.
-
implicit
val
stringJsonOutput: JsonOutput[String]
Converts String to JsonValue.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
tryJsonInput[T](implicit input: JsonInput[T]): JsonInput[Try[T]]
Creates JsonInput for converting JsonValue to Try.
-
implicit
def
tryJsonOutput[A, M[A] <: Try[A]](implicit output: JsonOutput[A]): JsonOutput[M[A]]
Creates JsonOutput for converting Try to JsonValue.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()