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.
- Alphabetic
- By Inheritance
- Js
- AstTransformer
- Visitor
- Transformer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
AstArrVisitor[T[_]] extends ArrVisitor[I, I]
- Definition Classes
- AstTransformer
-
class
AstObjVisitor[T] extends ObjVisitor[I, I]
- Definition Classes
- AstTransformer
- case class Arr(value: ArrayBuffer[Value]) extends Transformable with Value with Product with Serializable
- sealed abstract class Bool extends Transformable with Value
-
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
- case class Num(value: Double) extends Transformable with Value with Product with Serializable
- case class Obj(value: LinkedHashMap[String, Value]) extends Transformable with Value with Product with Serializable
- sealed trait Selector extends AnyRef
- case class Str(value: String) extends Transformable with Value with Product with Serializable
- type Value = Js
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def JsonableBoolean(i: Boolean): Bool with Product with Serializable
- implicit def JsonableByte(i: Byte): Num
- implicit def JsonableDict[T](items: TraversableOnce[(String, T)])(implicit f: (T) ⇒ Value): Obj
- implicit def JsonableDouble(i: Double): Num
- implicit def JsonableFloat(i: Float): Num
- implicit def JsonableInt(i: Int): Num
- implicit def JsonableLong(i: Long): Str
- implicit def JsonableNull(i: Null): Null.type
- implicit def JsonableSeq[T](items: TraversableOnce[T])(implicit f: (T) ⇒ Value): Arr
- implicit def JsonableShort(i: Short): Num
- implicit def JsonableString(s: CharSequence): Str
-
def
apply(t: Transformable): Js
- Definition Classes
- Visitor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transform[T](j: Value, f: Visitor[_, T]): T
- Definition Classes
- Js → Transformer
-
def
transformArray[T](f: Visitor[_, T], items: TraversableOnce[Js]): T
- Definition Classes
- AstTransformer
-
def
transformObject[T](f: Visitor[_, T], items: TraversableOnce[(String, Js)]): T
- Definition Classes
- AstTransformer
-
def
transformable[T](j: Js): fromTransformer[Js]
- Definition Classes
- Transformer
- def visitArray(index: Int): AstArrVisitor[ArrayBuffer]
-
def
visitArray(): ArrVisitor[Js, Js]
- Definition Classes
- Visitor
- def visitFalse(index: Int): False.type
-
def
visitFalse(): Js
- Definition Classes
- Visitor
- def visitNull(index: Int): Null.type
-
def
visitNull(): Js
- Definition Classes
- Visitor
- def visitNum(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): Num
-
def
visitNum(s: CharSequence, decIndex: Int, expIndex: Int): Js
- Definition Classes
- Visitor
-
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
visitNumif not overriden -
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
- def visitObject(index: Int): AstObjVisitor[LinkedHashMap[String, Js]]
-
def
visitObject(): ObjVisitor[Js, Js]
- Definition Classes
- Visitor
- def visitString(s: CharSequence, index: Int): Str
-
def
visitString(s: CharSequence): Js
- Definition Classes
- Visitor
- def visitTrue(index: Int): True.type
-
def
visitTrue(): Js
- Definition Classes
- Visitor
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Arr extends Serializable
- object Bool
- object False extends Bool with Product with Serializable
- object Null extends Transformable with Value with Product with Serializable
- object Obj extends Serializable
- object Selector
- object True extends Bool with Product with Serializable