JSONOutput

fm.serializer.json.JSONOutput
final class JSONOutput(options: JSONSerializerOptions) extends Output

Attributes

Graph
Supertypes
trait Output
trait RawOutput
trait NestedOutput
trait FieldOutput
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def allowStringMap: Boolean
def reset(): Unit
def toByteArray: Array[Byte]
def writeFieldBigDecimal(number: Int, name: String, value: BigDecimal): Unit
def writeFieldBigInteger(number: Int, name: String, value: BigInteger): Unit
def writeFieldBool(number: Int, name: String, value: Boolean): Unit
def writeFieldByteArray(number: Int, name: String, value: Array[Byte]): Unit
def writeFieldCollection[T](number: Int, name: String, col: T)(f: (NestedOutput, T) => Unit): Unit
def writeFieldDouble(number: Int, name: String, value: Double): Unit
def writeFieldFixedInt(number: Int, name: String, value: Int): Unit
def writeFieldFixedLong(number: Int, name: String, value: Long): Unit
def writeFieldFloat(number: Int, name: String, value: Float): Unit
def writeFieldInt(number: Int, name: String, value: Int): Unit
def writeFieldLong(number: Int, name: String, value: Long): Unit
def writeFieldNull(number: Int, name: String): Unit
def writeFieldObject[T](number: Int, name: String, obj: T)(f: (FieldOutput, T) => Unit): Unit
def writeFieldSignedInt(number: Int, name: String, value: Int): Unit
def writeFieldSignedLong(number: Int, name: String, value: Long): Unit
def writeFieldString(number: Int, name: String, value: String): Unit
def writeFieldUnsignedInt(number: Int, name: String, value: Int): Unit
def writeFieldUnsignedLong(number: Int, name: String, value: Long): Unit
def writeNestedBigDecimal(value: BigDecimal): Unit
def writeNestedBigInteger(value: BigInteger): Unit
def writeNestedBool(value: Boolean): Unit
def writeNestedByteArray(value: Array[Byte]): Unit
def writeNestedCollection[T](col: T)(f: (NestedOutput, T) => Unit): Unit
def writeNestedDouble(value: Double): Unit
def writeNestedFixedInt(value: Int): Unit
def writeNestedFixedLong(value: Long): Unit
def writeNestedFloat(value: Float): Unit
def writeNestedInt(value: Int): Unit
def writeNestedLong(value: Long): Unit
def writeNestedObject[T](obj: T)(f: (FieldOutput, T) => Unit): Unit
def writeNestedSignedInt(value: Int): Unit
def writeNestedSignedLong(value: Long): Unit
def writeNestedString(value: String): Unit
def writeNestedUnsignedInt(value: Int): Unit
def writeNestedUnsignedLong(value: Long): Unit
def writeRawBigDecimal(value: BigDecimal): Unit
def writeRawBigInteger(value: BigInteger): Unit
def writeRawBool(value: Boolean): Unit
def writeRawByteArray(value: Array[Byte]): Unit
def writeRawCollection[T](col: T)(f: (NestedOutput, T) => Unit): Unit

Write out a RAW collection. This method will wrap the collection in whatever leading/trailing "stuff" is needed (e.g. length prefixing, leading/trailing chars, etc...). The method that you pass in should use the Output instance to make repeated calls to a single write

Write out a RAW collection. This method will wrap the collection in whatever leading/trailing "stuff" is needed (e.g. length prefixing, leading/trailing chars, etc...). The method that you pass in should use the Output instance to make repeated calls to a single write

Attributes

def writeRawDouble(value: Double): Unit
def writeRawFixedInt(value: Int): Unit
def writeRawFixedLong(value: Long): Unit
def writeRawFloat(value: Float): Unit
def writeRawInt(value: Int): Unit
def writeRawLong(value: Long): Unit
def writeRawObject[T](obj: T)(f: (FieldOutput, T) => Unit): Unit

For writing objects. Note: that the obj is passed in for null handling by the implementation. If the object is not null then the function f will be called so the caller can write out the fields

For writing objects. Note: that the obj is passed in for null handling by the implementation. If the object is not null then the function f will be called so the caller can write out the fields

Attributes

def writeRawSignedInt(value: Int): Unit
def writeRawSignedLong(value: Long): Unit
def writeRawString(value: String): Unit
def writeRawUnsignedInt(value: Int): Unit
def writeRawUnsignedLong(value: Long): Unit