Json

io.vertx.lang.scala.json.Json
object Json

Builder for constructing JsonObjects and JsonArrays.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Json.type

Members list

Value members

Concrete methods

def arr(json: String): JsonArray

Creates a JsonArray from an encoded JSON string.

Creates a JsonArray from an encoded JSON string.

Value parameters

json

The JSON string.

Attributes

Returns

The decoded JsonArray.

def arr(): JsonArray

Creates an empty JsonArray.

Creates an empty JsonArray.

Attributes

def arr(fields: Any*): JsonArray

Creates a JsonArray from a sequence of values.

Creates a JsonArray from a sequence of values.

Value parameters

fields

The elements to put into the JsonArray.

Attributes

Returns

A JsonArray containing the provided elements.

def obj(json: String): JsonObject

Creates a JsonObject from an encoded JSON string.

Creates a JsonObject from an encoded JSON string.

Value parameters

json

The JSON string.

Attributes

Returns

The decoded JsonObject.

def obj(): JsonObject

Creates an empty JsonObject.

Creates an empty JsonObject.

Attributes

def obj(map: Map[String, Any]): JsonObject

Constructs a JsonObject from a Scala Map.

Constructs a JsonObject from a Scala Map.

Attributes

def obj(map: Map[String, Object]): JsonObject

Constructs a JsonObject from a Java Map.

Constructs a JsonObject from a Java Map.

Attributes

def obj(fields: (String, Any)*): JsonObject

Constructs a JsonObject from Scala Tuples.

Constructs a JsonObject from Scala Tuples.

Attributes

Extensions

Extensions

extension (internal: JsonArray)
def list: List[Any]

Attributes