skinny.micro.contrib

JSONSupport

trait JSONSupport extends JSONStringOps

JSON response support.

Self Type
JSONSupport with SkinnyMicroBase
Linear Supertypes
JSONStringOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JSONSupport
  2. JSONStringOps
  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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromJSONString[A](json: String, underscoreKeys: Boolean = useUnderscoreKeysForJSON)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A], tag: ClassTag[A]): Try[A]

    Extracts a value from JSON string.

    Extracts a value from JSON string. NOTE: When you convert to Map objects, be aware that underscoreKeys is false by default.

    A

    return type

    json

    json string

    underscoreKeys

    apply #underscoreKeys keys if true

    returns

    value

    Definition Classes
    JSONStringOps
  12. final def getClass(): Class[_]

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def plainJSONObjectMapper: ObjectMapper

    Definition Classes
    JSONStringOps
  19. def prefixForJSONVulnerabilityProtection: String

    the prefix for JSON Vulnerability Protection.

    the prefix for JSON Vulnerability Protection. see: "https://docs.angularjs.org/api/ng/service/$http"

    Attributes
    protected
    Definition Classes
    JSONStringOps
  20. def responseAsJSON(entity: Any, charset: Option[String] = Some("utf-8"), prettify: Boolean = false, underscoreKeys: Boolean = self.useUnderscoreKeysForJSON)(implicit ctx: SkinnyContext): String

    Returns JSON response.

    Returns JSON response.

    entity

    entity

    charset

    charset

    prettify

    prettify if true

    returns

    body

  21. def snakeCasedKeyJSONObjectMapper: ObjectMapper

    Definition Classes
    JSONStringOps
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toJSONString(value: Any, underscoreKeys: Boolean = useUnderscoreKeysForJSON, prettify: Boolean = false): String

    Converts a value to JSON string.

    Converts a value to JSON string.

    value

    value

    underscoreKeys

    apply #underscoreKeys keys if true

    returns

    json string

    Definition Classes
    JSONStringOps
  24. def toJSONStringAsIs(value: Any, prettify: Boolean = false): String

    Definition Classes
    JSONStringOps
  25. def toPrettyJSONString(value: Any, underscoreKeys: Boolean = useUnderscoreKeysForJSON): String

    Converts a value to prettified JSON string.

    Converts a value to prettified JSON string.

    value

    value

    underscoreKeys

    apply #underscoreKeys keys if true

    returns

    json string

    Definition Classes
    JSONStringOps
  26. def toPrettyJSONStringAsIs(value: Any): String

    Definition Classes
    JSONStringOps
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def useJSONVulnerabilityProtection: Boolean

    Use the prefix for JSON Vulnerability Protection.

    Use the prefix for JSON Vulnerability Protection. see: "https://docs.angularjs.org/api/ng/service/$http"

    Attributes
    protected
    Definition Classes
    JSONStringOps
  29. def useUnderscoreKeysForJSON: Boolean

    Default key policy.

    Default key policy.

    Attributes
    protected
    Definition Classes
    JSONStringOps
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JSONStringOps

Inherited from AnyRef

Inherited from Any

Ungrouped