Unbuilder

class Unbuilder[J](facade: Facade[J])

Builder is an mutable structure to write JSON into.

class Object
trait Matchable
class Any

Value members

Concrete methods

def beginArray(js: J): Int

Begin reading JSON array. Returns the size. Call nextElement n-times, and then call endArray.

Begin reading JSON array. Returns the size. Call nextElement n-times, and then call endArray.

def beginObject(js: J, fieldNames: Option[Vector[String]]): Int

Begin reading JSON object. Returns the size. Call nextField n-times, and then call endObject.

Begin reading JSON object. Returns the size. Call nextField n-times, and then call endObject.

def beginObject(js: J): Int

Begin reading JSON object. Returns the size. Call nextField n-times, and then call endObject.

Begin reading JSON object. Returns the size. Call nextField n-times, and then call endObject.

def beginPreObject(js: J): Int

The unbuilder counterpart for beginPreObject. This is used to filter out the type field.

The unbuilder counterpart for beginPreObject. This is used to filter out the type field.

def endArray(): Unit

End reading JSON array. Returns the size.

End reading JSON array. Returns the size.

def endObject(): Unit

End reading JSON object. Returns the size.

End reading JSON object. Returns the size.

def endPreObject(): Unit
def hasNextField: Boolean
def isInObject: Boolean
def isJnull(js: J): Boolean

Check if js is null

Check if js is null

def isObject(js: J): Boolean

Check if js is an object

Check if js is an object

def lookupField(name: String): Option[J]
def nextFieldOpt(): (String, Option[J])
def nextFieldOptWithJString(): (J, Option[J])
def readBigDecimal(js: J): BigDecimal

Read BigDecimal value to the current context.

Read BigDecimal value to the current context.

def readBoolean(js: J): Boolean

Read Boolean value to the current context.

Read Boolean value to the current context.

def readDouble(js: J): Double

Read Double value to the current context.

Read Double value to the current context.

def readField[A : JsonReader](name: String): A
def readFloat(js: J): Float

Read Float value to the current context.

Read Float value to the current context.

def readInt(js: J): Int

Read Int value to the current context.

Read Int value to the current context.

def readLong(js: J): Long

Read Long value to the current context.

Read Long value to the current context.

def readString(js: J): String

Read String value to the current context.

Read String value to the current context.

Deprecated methods

@deprecated("Use nextFieldOpt that returns (String, Option[J]). nextField uses JNull to encode elided fields.", "0.8.0")
def nextField(): (String, J)
Deprecated
@deprecated("Use nextFieldOpt that returns (J, Option[J]). nextFieldOptWithJString uses JNull to encode elided fields.", "0.8.0")
def nextFieldWithJString(): (J, J)
Deprecated