argonaut

Parse

object Parse extends Parse[String]

Library functions for parsing json.

Linear Supertypes
Parse[String], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Parse
  2. Parse
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decode[X](value: String)(implicit arg0: DecodeJson[X]): \/[\/[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.

    Parses the value and decodes it returning a list of all the failures stemming from either the JSON parsing or the decoding.

    Definition Classes
    Parse
  7. def decodeEither[X](value: String)(implicit arg0: DecodeJson[X]): \/[String, X]

    Parses and decodes the value to a possible JSON value.

    Parses and decodes the value to a possible JSON value.

    Definition Classes
    Parse
  8. def decodeOption[X](value: String)(implicit arg0: DecodeJson[X]): Option[X]

    Parses and decodes the value to a possible JSON value.

    Parses and decodes the value to a possible JSON value.

    Definition Classes
    Parse
  9. def decodeOr[B, X](value: String, 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.

    Definition Classes
    Parse
  10. def decodeValidation[X](value: String)(implicit arg0: DecodeJson[X]): Validation[String, X]

    Parses and decodes the value to a possible JSON value.

    Parses and decodes the value to a possible JSON value.

    Definition Classes
    Parse
  11. def decodeWith[B, X](value: String, 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.

    Definition Classes
    Parse
  12. def decodeWithEither[B, X](value: String, success: (X) ⇒ B, failure: (\/[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.

    Definition Classes
    Parse
  13. def decodeWithMessage[B, X](value: String, 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.

    Definition Classes
    Parse
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def parse(value: String): \/[String, Json]

    Parses the string value and either returns a list of the failures from parsing the string or an instance of the Json type if parsing succeeds.

    Parses the string value and either returns a list of the failures from parsing the string or an instance of the Json type if parsing succeeds.

    Definition Classes
    ParseParse
  24. def parseOption(value: String): Option[Json]

    Parses the value to a possible JSON value.

    Parses the value to a possible JSON value.

    Definition Classes
    Parse
  25. def parseOr[X](value: String, 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.

    Definition Classes
    Parse
  26. def parseWith[X](value: String, 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.

    Definition Classes
    Parse
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Parse[String]

Inherited from AnyRef

Inherited from Any

Ungrouped