o

ujson

Js

Companion trait Js

object Js extends AstTransformer[Js]

A very small, very simple JSON AST that uPickle uses as part of its serialization process. A common standard between the Jawn AST (which we don't use so we don't pull in the bulk of Spire) and the Javascript JSON AST.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Js
  2. AstTransformer
  3. Visitor
  4. Transformer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AstArrVisitor[T[_]] extends ArrVisitor[I, I]
    Definition Classes
    AstTransformer
  2. class AstObjVisitor[T] extends ObjVisitor[I, I]
    Definition Classes
    AstTransformer
  3. case class Arr(value: ArrayBuffer[Value]) extends Transformable with Value with Product with Serializable
  4. sealed abstract class Bool extends Transformable with Value
  5. case class InvalidData(data: Value, msg: String) extends Exception with Product with Serializable

    Thrown when uPickle tries to convert a JSON blob into a given data structure but fails because part the blob is invalid

    Thrown when uPickle tries to convert a JSON blob into a given data structure but fails because part the blob is invalid

    data

    The section of the JSON blob that uPickle tried to convert. This could be the entire blob, or it could be some subtree.

    msg

    Human-readable text saying what went wrong

  6. case class Num(value: Double) extends Transformable with Value with Product with Serializable
  7. case class Obj(value: LinkedHashMap[String, Value]) extends Transformable with Value with Product with Serializable
  8. sealed trait Selector extends AnyRef
  9. case class Str(value: String) extends Transformable with Value with Product with Serializable
  10. type Value = Js

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. implicit def JsonableBoolean(i: Boolean): Bool with Product with Serializable
  5. implicit def JsonableByte(i: Byte): Num
  6. implicit def JsonableDict[T](items: TraversableOnce[(String, T)])(implicit f: (T) ⇒ Value): Obj
  7. implicit def JsonableDouble(i: Double): Num
  8. implicit def JsonableFloat(i: Float): Num
  9. implicit def JsonableInt(i: Int): Num
  10. implicit def JsonableLong(i: Long): Str
  11. implicit def JsonableNull(i: Null): Null.type
  12. implicit def JsonableSeq[T](items: TraversableOnce[T])(implicit f: (T) ⇒ Value): Arr
  13. implicit def JsonableShort(i: Short): Num
  14. implicit def JsonableString(s: CharSequence): Str
  15. def apply(t: Transformable): Js
    Definition Classes
    Visitor
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def transform[T](j: Value, f: Visitor[_, T]): T
    Definition Classes
    Js → Transformer
  30. def transformArray[T](f: Visitor[_, T], items: TraversableOnce[Js]): T
    Definition Classes
    AstTransformer
  31. def transformObject[T](f: Visitor[_, T], items: TraversableOnce[(String, Js)]): T
    Definition Classes
    AstTransformer
  32. def transformable[T](j: Js): fromTransformer[Js]
    Definition Classes
    Transformer
  33. def visitArray(index: Int): AstArrVisitor[ArrayBuffer]
    Definition Classes
    Js → Visitor
  34. def visitArray(): ArrVisitor[Js, Js]
    Definition Classes
    Visitor
  35. def visitFalse(index: Int): False.type
    Definition Classes
    Js → Visitor
  36. def visitFalse(): Js
    Definition Classes
    Visitor
  37. def visitNull(index: Int): Null.type
    Definition Classes
    Js → Visitor
  38. def visitNull(): Js
    Definition Classes
    Visitor
  39. def visitNum(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): Num
    Definition Classes
    Js → Visitor
  40. def visitNum(s: CharSequence, decIndex: Int, expIndex: Int): Js
    Definition Classes
    Visitor
  41. def visitNumRaw(d: Double, index: Int): Num

    Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g.

    Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).

    Delegates to visitNum if not overriden

    Definition Classes
    Js → Visitor
  42. def visitNumRawString(s: String, index: Int): Js

    Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

    Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

    Definition Classes
    Visitor
  43. def visitObject(index: Int): AstObjVisitor[LinkedHashMap[String, Js]]
    Definition Classes
    Js → Visitor
  44. def visitObject(): ObjVisitor[Js, Js]
    Definition Classes
    Visitor
  45. def visitString(s: CharSequence, index: Int): Str
    Definition Classes
    Js → Visitor
  46. def visitString(s: CharSequence): Js
    Definition Classes
    Visitor
  47. def visitTrue(index: Int): True.type
    Definition Classes
    Js → Visitor
  48. def visitTrue(): Js
    Definition Classes
    Visitor
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  52. object Arr extends Serializable
  53. object Bool
  54. object False extends Bool with Product with Serializable
  55. object Null extends Transformable with Value with Product with Serializable
  56. object Obj extends Serializable
  57. object Selector
  58. object True extends Bool with Product with Serializable

Inherited from AstTransformer[Js]

Inherited from Visitor[Js, Js]

Inherited from Transformer[Js]

Inherited from AnyRef

Inherited from Any

Ungrouped