fabric
package fabric
- Source
- package.scala
- Alphabetic
- By Inheritance
- fabric
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
Arr(value: Vector[Json], reference: Option[Any] = None) extends Json with Product with Serializable
Arr represents an array (Vector[Json])
-
case class
Bool(value: Boolean, reference: Option[Any] = None) extends Json with Product with Serializable
Bool represents a boolean value
- case class ConversionException(message: String) extends RuntimeException with Product with Serializable
-
sealed
trait
Json extends Any
Json represents the base sealed trait for all representable types in Fabric.
-
final
case class
JsonPath(entries: List[JsonPathEntry]) extends AnyVal with Product with Serializable
Path is a convenience wrapper to represent paths for lookups or changes in Json
- sealed trait JsonPathEntry extends Any
-
sealed
trait
JsonType[T] extends AnyRef
JsonType represents the possible types of Json
-
trait
JsonWrapper extends AnyRef
JsonWrapper mix-in provides insight to Reader and Writer generation to synchronize to and from the
json
value.JsonWrapper mix-in provides insight to Reader and Writer generation to synchronize to and from the
json
value. When writing to a type, thejson
value is provided a reference to the original Json used to build it. When reading into Json, the additional values in thejson
are retained, although the values in the case class of the same name will overwrite those within thejson
. -
sealed
trait
MergeType extends AnyRef
MergeType is used to determine how merging of two Values should occur
- sealed trait Null extends Json
- sealed trait Num extends Json
-
case class
NumDec(value: BigDecimal, reference: Option[Any] = None) extends Num with Product with Serializable
NumDec represents a numeric value and wraps a BigDecimal
-
case class
NumInt(value: Long, reference: Option[Any] = None) extends Num with Product with Serializable
NumInt represents a numeric value and wraps a Long
-
final
class
Obj extends Json
Obj represents a Map of key-value pairs (String, Json)
-
case class
Str(value: String, reference: Option[Any] = None) extends Json with Product with Serializable
Str represents a String
Value Members
-
def
arr(values: Json*): Arr
Create an Arr from the params
-
implicit
def
bool(b: Boolean): Bool
Create a Bool from the supplied Boolean
- implicit def doubles2Arr(seq: Seq[Double]): Arr
- implicit def int2PathEntry(index: Int): JsonPathEntry
- implicit def ints2Arr(seq: Seq[Int]): Arr
- implicit def map2Obj(map: Map[String, Json]): Obj
- implicit def num(value: Long): Num
- implicit def num(value: Int): Num
-
implicit
def
num(value: BigDecimal): Num
Create a Num from the supplied BigDecimal
-
implicit
def
num(value: Double): Num
Create a Num from the supplied Double
-
def
num(value: String): Num
Create a Num from the supplied String
-
def
obj(params: (String, Json)*): Obj
Create an Obj from the params
- implicit def seq2Arr(seq: Seq[Json]): Arr
-
implicit
def
str(s: String): Json
Create a Str from the supplied String
- implicit def string2Path(s: String): JsonPath
- implicit def string2PathEntry(name: String): JsonPathEntry
- object Cryo
- object Json
- object JsonPath extends Serializable
- object JsonPathEntry
- object JsonType extends Product with Serializable
- object MergeType
-
object
Null extends Null
Null represents a null Json
- object Obj
- object Str extends Serializable