Packages

trait AngularJSONStringOps extends JSONStringOps

JSON String operations for Angular application's server side.

- camelCase keys - JSON vulnerability protection enabled by default

Linear Supertypes
JSONStringOps, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AngularJSONStringOps
  2. JSONStringOps
  3. AnyRef
  4. 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 asJValue[T](obj: T)(implicit writer: Writer[T]): JValue
    Definition Classes
    JSONStringOps
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def compact(value: JValue): String

    Returns JSON string value.

    Returns JSON string value.

    value

    value

    Definition Classes
    JSONStringOps
  8. def defaultObjectMapper: ObjectMapper
    Definition Classes
    JSONStringOps
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromJSONString[A](json: String, underscoreKeys: Boolean = false, asIs: Boolean = false)(implicit mf: Manifest[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

    asIs

    never apply key conversions if true

    returns

    value

    Definition Classes
    JSONStringOps
  13. def fromJSONStringAsIs[A](json: String)(implicit mf: Manifest[A]): Try[A]

    Extracts a value from JSON string.

    Extracts a value from JSON string. The keys will be used as-is.

    case class Something(fooBar_baz: String)
    val something = new Something("foo")
    val json = toJSONString(something)
    val something2 = fromJSONStringAsIs[Something](json)
    something2.map(_.fooBar_baz) should equal(Some(something.fooBar_Baz))
    A

    return type

    json

    json string

    mf

    manifest

    returns

    value

    Definition Classes
    JSONStringOps
  14. def fromJSONStringToJValue(json: String, underscoreKeys: Boolean = false, asIs: Boolean = false): Try[JValue]

    Extracts a JSON value from JSON string.

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

    json

    json string

    underscoreKeys

    underscore keys

    returns

    value

    Definition Classes
    JSONStringOps
  15. def fromJValue[T](json: JValue)(implicit reader: Reader[T]): T
    Definition Classes
    JSONStringOps
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. implicit val jsonFormats: Formats

    JSON format support implicitly.

    JSON format support implicitly.

    Attributes
    protected
    Definition Classes
    JSONStringOps
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. 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
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toJSON(v: Any): JValue

    Converts a value to JSON value.

    Converts a value to JSON value.

    v

    value

    returns

    JValue

    Definition Classes
    JSONStringOps
  26. def toJSONString(v: Any, underscoreKeys: Boolean = useUnderscoreKeysForJSON): String

    Converts a value to JSON string.

    Converts a value to JSON string.

    v

    value

    underscoreKeys

    apply #underscoreKeys keys if true

    returns

    json string

    Definition Classes
    JSONStringOps
  27. def toJSONStringAsIs(v: Any): String

    Converts a value to JSON string without key conversions.

    Converts a value to JSON string without key conversions.

    v

    value

    returns

    json string

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

    Converts a value to prettified JSON string.

    Converts a value to prettified JSON string.

    v

    value

    underscoreKeys

    apply #underscoreKeys keys if true

    returns

    json string

    Definition Classes
    JSONStringOps
  29. def toPrettyJSONStringAsIs(v: Any): String

    Converts a value to prettified JSON string without key conversions.

    Converts a value to prettified JSON string without key conversions.

    v

    value

    returns

    json string

    Definition Classes
    JSONStringOps
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. 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
    AngularJSONStringOpsJSONStringOps
  32. def useUnderscoreKeysForJSON: Boolean

    Default key policy.

    Default key policy.

    Attributes
    protected
    Definition Classes
    AngularJSONStringOpsJSONStringOps
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from JSONStringOps

Inherited from AnyRef

Inherited from Any

Ungrouped