com.github.kmizu.jsonda

Implicits

class Implicits extends AnyRef

Overview

Provides a DSL for constructing JSON object(based on net.liftweb.json.JsonAST.JValue). To use the DSL, the following code is needed for preparation:

val builder = new com.github.kmizu.jsonda.Implicits
import builder._

After the above code, users construct JSON object as the followings:

val jsonObject = %{
  'name :- "A Person"
  'age :- 28
  'nick_names :- $("foo", "hoge", "bar")
}

To prevent pollution of namespace, it is recommended that this DSL is used inside blocks:

{
val builder = new com.github.kmizu.jsonda.Implicits

import builder._
val person = %{'name :- "A Person"; 'age :- 28}
}
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Implicits
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Implicits()

Type Members

  1. class PBinder extends PimpedType[String]

    A class for extending String methods in *Pimp my library* pattern".

  2. class PJSON extends PimpedType[JValue]

    "A class for extending JsonAST.

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. def $(elements: JValue*): JArray

    Constructs an object of net.liftweb.json.JsonAST.JArray.

    Constructs an object of net.liftweb.json.JsonAST.JArray. The elements of the array are elements.

    elements

    var-args of net.liftweb.json.JsonAST.JValue, which are elements of net.liftweb.json.JsonAST.JArray

    returns

    net.liftweb.json.JsonAST.JArray, which elements is elements.

  5. def %(body: ⇒ Any): JObject

    Constructs an object which type is net.liftweb.json.JsonAST.JObject.

    Constructs an object which type is net.liftweb.json.JsonAST.JObject. The object is determined by the result of evaluation of body.

  6. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  9. implicit def bigDecimal2String(arg: BigDecimal): JString

  10. implicit def bigInt2JString(arg: BigInt): JString

  11. implicit def boolean2JBool(arg: Boolean): JBool

  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. implicit def double2JDouble(arg: Double): JDouble

  14. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. implicit def float2JDouble(arg: Float): JDouble

  18. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  20. implicit def int2JInt(arg: Int): JInt

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. implicit def long2JInt(arg: Long): JInt

  23. implicit def makeBinderFromString(arg: String): PBinder

  24. implicit def makeBinderFromSymbol(arg: Symbol): PBinder

  25. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  28. implicit def pimpJsonAST(arg: JValue): PJSON

  29. implicit def string2JString(arg: String): JString

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any