Struct

object Struct extends Dynamic

Dynamical data structure represented in JSON format.

Since

0.1.0

Companion
class
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

@unused
def applyDynamicNamed(method: String)(kwargs: (String, Struct)*): Struct

Supports dynamic apply method.

Supports dynamic apply method.

Returns

Struct.

Since

0.1.0

Example
val struct = Struct(title = "apple", quantity = 3, edible=true, color=["green", "red", "green"])
def create(json: String): Struct

Creates a Struct object from a JSON string.

Creates a Struct object from a JSON string.

Value Params
json

JSON string.

Returns

Struct.s

Since

0.1.0

Create an empty Struct represented by "{}".

Create an empty Struct represented by "{}".

Returns

Empty Struct.

Since

0.1.0

Creates a Struct represented by "null".

Creates a Struct represented by "null".

Returns

Struct "null".

Since

0.1.0

Implicits

Implicits

implicit def structFromBoolean(boolean: Boolean): Struct
Since

0.1.0

implicit def structFromBooleans(seq: Seq[Boolean]): Struct
Since

0.1.0

implicit def structFromDouble(double: Double): Struct
Since

0.1.0

implicit def structFromDoubles(seq: Seq[Double]): Struct
Since

0.1.0

implicit def structFromFloat(float: Float): Struct
Since

0.1.0

implicit def structFromFloats(seq: Seq[Float]): Struct
Since

0.1.0

implicit def structFromInt(int: Int): Struct
Since

0.1.0

implicit def structFromInts(seq: Seq[Int]): Struct
Since

0.1.0

implicit def structFromString(string: String): Struct
Since

0.1.0

implicit def structFromStrings(seq: Seq[String]): Struct
Since

0.1.0

implicit def structFromStructs(seq: Seq[Struct]): Struct
Since

0.1.0