skinny.json4s

JSONStringOps

object JSONStringOps extends JSONStringOps

Linear Supertypes
JSONStringOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JSONStringOps
  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 asJValue[T](obj: T)(implicit writer: Writer[T]): JValue

    Definition Classes
    JSONStringOps
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compact(value: JValue): String

    Returns JSON string value.

    Returns JSON string value.

    value

    value

    Definition Classes
    JSONStringOps
  10. def defaultObjectMapper: ObjectMapper

    Definition Classes
    JSONStringOps
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. 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
  15. 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
  16. 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
  17. def fromJValue[T](json: JValue)(implicit reader: Reader[T]): T

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

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

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

    Definition Classes
    Any
  21. implicit val jsonFormats: Formats

    JSON format support implicitly.

    JSON format support implicitly.

    Attributes
    protected
    Definition Classes
    JSONStringOps
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. 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
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toJSON(v: Any): JValue

    Converts a value to JSON value.

    Converts a value to JSON value.

    v

    value

    returns

    JValue

    Definition Classes
    JSONStringOps
  28. 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
  29. 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
  30. 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
  31. 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
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. 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
  34. def useUnderscoreKeysForJSON: Boolean

    Default key policy.

    Default key policy.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JSONStringOps

Inherited from AnyRef

Inherited from Any

Ungrouped