org.onion_lang.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 org.onion_lang.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 org.onion_lang.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. def != (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def $ (elements: JValue*): JArray

    Constructs an object of [net.

    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. def == (arg0: AnyRef): Boolean

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

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

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

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

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

    Attributes
    implicit
  12. def clone (): AnyRef

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

    Attributes
    implicit
  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    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. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

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

    Attributes
    implicit
  20. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  21. implicit def makeBinderFromString (arg: String): PBinder

    Attributes
    implicit
  22. implicit def makeBinderFromSymbol (arg: Symbol): PBinder

    Attributes
    implicit
  23. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. implicit def pimpJsonAST (arg: JValue): PJSON

    Attributes
    implicit
  27. implicit def string2JString (arg: String): JString

    Attributes
    implicit
  28. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  29. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any