package json
Contains the model classes for JSON fragments.
Overview
Examples of interesting nodes in this package are:
- JsonObjectNode, modeling json objects;
- JsonMemberNode, modeling a name - value pair;
- literals, like JsonStringNode and JsonBooleanNode.
- Alphabetic
- By Inheritance
- json
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
JsonASTNode
extends HASTNode
Tag type for Json ASTs.
-
case class
JsonArrayNode
(elements: Seq[JsonValueNode]) extends JsonValueNode with Product with Serializable
Represents a Json array.
Represents a Json array.
- elements
the elements of the array.
-
case class
JsonBooleanNode
(value: Boolean) extends JsonValueNode with JsonLiteralNode[Boolean] with Product with Serializable
Represents a Json boolean literal.
-
case class
JsonFloatNode
(value: Double) extends JsonValueNode with JsonLiteralNode[Double] with Product with Serializable
Represents a Json float literal.
-
case class
JsonIntNode
(value: BigInt) extends JsonValueNode with JsonLiteralNode[BigInt] with Product with Serializable
Represents a Json integer literal.
-
trait
JsonLiteralNode
[T] extends JsonValueNode
Tag type for Json literal nodes.
Tag type for Json literal nodes.
- T
the type of the literal as represented in scala.
-
case class
JsonMemberNode
(name: JsonStringNode, value: JsonValueNode) extends JsonASTNode with Product with Serializable
Represents a Json member, that is, a name/value pair.
Represents a Json member, that is, a name/value pair.
- name
the name of the member.
- value
the value of the member.
-
case class
JsonNullNode
() extends JsonValueNode with JsonLiteralNode[Null] with Product with Serializable
Represents the Json null literal.
-
case class
JsonObjectNode
(members: Seq[JsonMemberNode]) extends JsonValueNode with Product with Serializable
Represents a Json object, i.e., a sequence of Json members.
Represents a Json object, i.e., a sequence of Json members.
- members
the members of the Json object.
-
case class
JsonStringNode
(value: String, embeddedContents: Option[EmbeddedContentsNode] = None) extends JsonValueNode with JsonLiteralNode[String] with EmbeddedContentsProvider with Product with Serializable
Represents a Json string literal.
-
trait
JsonValueNode
extends JsonASTNode
Tag type for Json value nodes.
Value Members
-
object
JsonImplicits
If imported, allows to generate code from a JsonASTNode