fabric

package fabric

Type members

Classlikes

final case class Arr(value: Vector[Json]) extends AnyVal with Json

Arr represents an array (Vector[Json])

Arr represents an array (Vector[Json])

Source:
Json.scala
final case class Bool(value: Boolean) extends AnyVal with Json

Bool represents a boolean value

Bool represents a boolean value

Source:
Json.scala
object Cryo
Source:
Cryo.scala
sealed trait Json

Json represents the base sealed trait for all representable types in Fabric.

Json represents the base sealed trait for all representable types in Fabric.

Companion:
object
Source:
Json.scala
object Json
Companion:
class
Source:
Json.scala
sealed trait JsonType[T]

JsonType represents the possible types of Json

JsonType represents the possible types of Json

Companion:
object
Source:
JsonType.scala
case object JsonType
Companion:
class
Source:
JsonType.scala
sealed trait MergeType

MergeType is used to determine how merging of two Values should occur

MergeType is used to determine how merging of two Values should occur

Companion:
object
Source:
MergeType.scala
object MergeType
Companion:
class
Source:
MergeType.scala
sealed trait Null extends Json
Companion:
object
Source:
Json.scala
object Null extends Null

Null represents a null Json

Null represents a null Json

Companion:
class
Source:
Json.scala
sealed trait Num extends Json
Source:
Json.scala
case class NumDec(value: BigDecimal) extends Num

NumDec represents a numeric value and wraps a BigDecimal

NumDec represents a numeric value and wraps a BigDecimal

Source:
Json.scala
case class NumInt(value: Long) extends Num

NumInt represents a numeric value and wraps a Long

NumInt represents a numeric value and wraps a Long

Source:
Json.scala
final class Obj extends AnyVal with Json

Obj represents a Map of key-value pairs (String, Json)

Obj represents a Map of key-value pairs (String, Json)

Companion:
object
Source:
Json.scala
object Obj
Companion:
class
Source:
Json.scala
final case class Path(entries: List[String]) extends AnyVal

Path is a convenience wrapper to represent paths for lookups or changes in Json

Path is a convenience wrapper to represent paths for lookups or changes in Json

Companion:
object
Source:
Path.scala
object Path
Companion:
class
Source:
Path.scala
final case class Str(value: String) extends AnyVal with Json

Str represents a String

Str represents a String

Companion:
object
Source:
Json.scala
object Str
Companion:
class
Source:
Json.scala

Value members

Concrete methods

def arr(values: Json*): Arr

Create an Arr from the params

Create an Arr from the params

Source:
package.scala
def num(value: String): Num

Create a Num from the supplied String

Create a Num from the supplied String

Source:
package.scala
def obj(params: (String, Json)*): Obj

Create an Obj from the params

Create an Obj from the params

Source:
package.scala

Implicits

Implicits

implicit def bool(b: Boolean): Bool

Create a Bool from the supplied Boolean

Create a Bool from the supplied Boolean

Source:
package.scala
implicit def doubles2Arr(seq: Seq[Double]): Arr
implicit def ints2Arr(seq: Seq[Int]): Arr
implicit def listMap2Obj(map: ListMap[String, Json]): Obj
implicit def map2Obj(map: Map[String, Json]): Obj
implicit def num(value: Double): Num

Create a Num from the supplied Double

Create a Num from the supplied Double

Source:
package.scala
implicit def num(value: BigDecimal): Num

Create a Num from the supplied BigDecimal

Create a Num from the supplied BigDecimal

Source:
package.scala
implicit def num(value: Int): Num
implicit def num(value: Long): Num
implicit def seq2Arr(seq: Seq[Json]): Arr
implicit def str(s: String): Str

Create a Str from the supplied String

Create a Str from the supplied String

Source:
package.scala
implicit def string2Path(s: String): Path