object JsonSource

Convenience class for obtaining JSON values and Schemas from different sources.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonSource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def fromString(json: String): Try[JsValue]

    Tries to parse the given JSON string.

    Tries to parse the given JSON string.

    json

    the input string

    returns

    the result wrapped in a Try

  9. def fromUrl(url: URL): Try[JsValue]

    Fetches the content from the given URL and tries to parse the result as JSON.

    Fetches the content from the given URL and tries to parse the result as JSON.

    url

    the URL at which a JSON instance is expected

    returns

    the result wrapped in a Try

  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def schemaFromStream(inputStream: InputStream)(implicit reads: Reads[SchemaType]): JsResult[SchemaType]

    Tries to read from the given InputStream and convert the result to a JSON schema.

    Tries to read from the given InputStream and convert the result to a JSON schema. Closes the stream in any case.

    inputStream

    the input string

    returns

    the read result wrapped in a JsResult

  17. def schemaFromString(json: String)(implicit reads: Reads[SchemaType]): JsResult[SchemaType]

    Tries to parse the given JSON string and convert it to a JSON schema.

    Tries to parse the given JSON string and convert it to a JSON schema.

    json

    the input string

    returns

    the result wrapped in a JsResult

  18. def schemaFromUrl(url: URL)(implicit reads: Reads[SchemaType]): JsResult[SchemaType]

    Fetches the content from the given URL and tries to parse the result as a JSON schema.

    Fetches the content from the given URL and tries to parse the result as a JSON schema.

    url

    the URL at which a JSON schema is expected

    returns

    the result wrapped in a JsResult

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped