JSONInput

fm.serializer.json.JSONInput
See theJSONInput companion object
abstract class JSONInput(options: JSONDeserializerOptions) extends Input

Attributes

Companion
object
Graph
Supertypes
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

final def allowStringMap: Boolean
final def expectNextChar(ch: Int): Unit
final def handleCollectionComma(): Unit
final def handleFieldComma(): Unit
final def hasAnotherElement: Boolean

Is there another element to read in the collection?

Is there another element to read in the collection?

Attributes

final override def lastFieldName(): String

The last field name that was read (if any)

The last field name that was read (if any)

Attributes

Definition Classes
final override def lastFieldNumber(): Int

The last field number that was read (if any)

The last field number that was read (if any)

Attributes

Definition Classes
final def nextValueIsNull: Boolean

Returns true if the next value is known to be null otherwise false if the value is not null or is unknown. This means that even if the next value ends up being null this can return false.

Returns true if the next value is known to be null otherwise false if the value is not null or is unknown. This means that even if the next value ends up being null this can return false.

Note: If the next value is null then this method should consume that input

Attributes

final override def readFieldName(): String

If dynamic string maps are supported then this should be implemented otherwise this can just throw an exception.

If dynamic string maps are supported then this should be implemented otherwise this can just throw an exception.

null should be returns on the end of an object/message

Attributes

Definition Classes
final override def readFieldNumber(nameToNumMap: FieldNameToNumberLookup): Int

This is for reading fields of an object.

This is for reading fields of an object.

Return the field number for the next readable field. Returns 0 if we've reached the end of the object/message

Attributes

Definition Classes
final def readNestedBigDecimal(): BigDecimal
final def readNestedBigInteger(): BigInteger
final def readNestedBool(): Boolean
final def readNestedByteArray(): Array[Byte]
final def readNestedCollection[T](f: CollectionInput => T): T
final def readNestedDouble(): Double
final def readNestedFixedInt(): Int
final def readNestedFixedLong(): Long
final def readNestedFloat(): Float
final def readNestedInt(): Int
final def readNestedLong(): Long
final def readNestedObject[T](f: FieldInput => T): T
final def readNestedSignedInt(): Int
final def readNestedSignedLong(): Long
final def readNestedString(): String
final def readNestedUnsignedInt(): Int
final def readNestedUnsignedLong(): Long
final def readRawBigDecimal(): BigDecimal
final def readRawBigInteger(): BigInteger
final def readRawBool(): Boolean
final def readRawByteArray(): Array[Byte]
final def readRawCollection[T](f: CollectionInput => T): T
final def readRawDouble(): Double
final def readRawFixedInt(): Int
final def readRawFixedLong(): Long
final def readRawFloat(): Float
final def readRawInt(): Int
final def readRawLong(): Long
final def readRawObject[T](f: FieldInput => T): T
final def readRawSignedInt(): Int
final def readRawSignedLong(): Long
final def readRawString(): String
final def readRawUnsignedInt(): Int
final def readRawUnsignedLong(): Long
final override def skipUnknownField(): Unit

Skip an unknown field value.

Skip an unknown field value.

If after calling readFieldNumber(...) we don't know how to handle the resulting field number then this method can be called to skip the value of the field after which we can call readFieldNumber(...) again.

Attributes

Definition Classes

Inherited methods

def reportUnsetField[T](number: Int, name: String, hasUserDefinedDefaultValue: Boolean, deserializer: Deserializer[T]): Unit

This is for reporting that fields for an object were not read and whether or not they had a user-defined default value.

This is for reporting that fields for an object were not read and whether or not they had a user-defined default value.

Value parameters

deserializer

The deserializer for the field. Note: This can be null.

hasUserDefinedDefaultValue

Whether or not there was a user defined default value (e.g. val foo: Int = 123)

name

The field name. Note: This can be null.

number

The field number

Attributes

Inherited from:
FieldInput