trait Parse[A] extends AnyRef
- Alphabetic
- By Inheritance
- Parse
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
decode[X](value: A)(implicit arg0: DecodeJson[X]): Either[Either[String, (String, CursorHistory)], X]
Parses the value and decodes it returning a list of all the failures stemming from either the JSON parsing or the decoding.
-
def
decodeEither[X](value: A)(implicit arg0: DecodeJson[X]): Either[String, X]
Parses and decodes the value to a possible JSON value.
-
def
decodeOption[X](value: A)(implicit arg0: DecodeJson[X]): Option[X]
Parses and decodes the value to a possible JSON value.
-
def
decodeOr[B, X](value: A, success: (X) ⇒ B, default: ⇒ B)(implicit arg0: DecodeJson[X]): B
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
- success
Run this function if the parse produces a success.
- default
Return this value of the parse or decode fails.
-
def
decodeWith[B, X](value: A, success: (X) ⇒ B, parsefailure: (String) ⇒ B, decodefailure: (String, CursorHistory) ⇒ B)(implicit arg0: DecodeJson[X]): B
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
- success
Run this function if the parse produces a success.
- parsefailure
Run this function if the parse produces a failure.
- decodefailure
Run this function if the decode produces a failure.
-
def
decodeWithEither[B, X](value: A, success: (X) ⇒ B, failure: (Either[String, (String, CursorHistory)]) ⇒ B)(implicit arg0: DecodeJson[X]): B
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
- success
Run this function if the parse produces a success.
- failure
Run this function if the parse produces a failure.
-
def
decodeWithMessage[B, X](value: A, success: (X) ⇒ B, failure: (String) ⇒ B)(implicit arg0: DecodeJson[X]): B
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
Parses the value into a JSON value and if it succeeds, decodes to a data-type.
- success
Run this function if the parse produces a success.
- failure
Run this function if the parse produces a failure.
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
def
parseOption(value: A): Option[Json]
Parses the value to a possible JSON value.
-
def
parseOr[X](value: A, success: (Json) ⇒ X, failure: ⇒ X): X
Parses the value and executes one of the given functions, depending on the parse outcome.
Parses the value and executes one of the given functions, depending on the parse outcome. Any error message is ignored.
- success
Run this function if the parse succeeds.
- failure
Run this function if the parse produces a failure.
-
def
parseWith[X](value: A, success: (Json) ⇒ X, failure: (String) ⇒ X): X
Parses the value and executes one of the given functions, depending on the parse outcome.
Parses the value and executes one of the given functions, depending on the parse outcome.
- success
Run this function if the parse succeeds.
- failure
Run this function if the parse produces a failure.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()