Packages

object JsObjParser extends Serializable

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsObjParser
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def parse(str: String): Either[InvalidJson, JsObj]

    parses a string into a Json object.

    parses a string into a Json object. If the string doesn't represent a well-formed Json object, a MalformedJson failure wrapped in a Try computation is returned.

    str

    a Json object serialized in a string

    returns

    a try computation with the result

  2. def parse(bytes: Array[Byte]): Either[InvalidJson, JsObj]

    parses an array of bytes into a Json object.

    parses an array of bytes into a Json object. If the array of bytes doesn't represent a well-formed Json object, a MalformedJson failure wrapped in a Try computation is returned.

    bytes

    a Json object serialized in an array of bytes

    returns

    a try computation with the result

  3. def parse(inputStream: InputStream): Try[JsObj]

    parses an input stream of bytes into a Json object that must conform the spec of the parser.

    parses an input stream of bytes into a Json object that must conform the spec of the parser. If the the input stream of bytes doesn't represent a well-formed Json object, a MalformedJson failure wrapped in a Try computation is returned. Any I/O exception processing the input stream is wrapped in a Try computation as well

    inputStream

    the input stream of bytes

    returns

    a try computation with the result