case object Json extends Target with Product with Serializable
- Alphabetic
- By Inheritance
- Json
- Serializable
- Product
- Equals
- Target
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class DecodingConfig(readIntegersAlsoAsFloatingPoint: Boolean = true, readDecimalNumbersOnlyAsNumberStrings: Boolean = false, maxNumberAbsExponent: Int = 64, maxStringLength: Int = 1024 * 1024, maxNumberMantissaDigits: Int = 34, initialCharbufferSize: Int = 2048, allowBufferCaching: Boolean = true, allowDirectParsing: Boolean = true) extends Borer.DecodingConfig with Config with Product with Serializable
- readIntegersAlsoAsFloatingPoint
set to false to disable automatic conversion of integer to floating point values
- readDecimalNumbersOnlyAsNumberStrings
set to true to disable the fast, immediate conversion of JSON numbers to Double values where easily possible. In rare cases this might be necessary to allow for maximum possible precision when reading 32-bit Float values from JSON. (see https://github.com/sirthias/borer/issues/20 for more info on this)
- maxNumberAbsExponent
the maximum absolute exponent value to accept in JSON numbers
- maxStringLength
the maximum string length to accept Note: For performance reasons this is a soft limit, that the parser will sometimes overstep. The only guarantee is that it will never accept Strings that are more than twice as long as the this limit.
- maxNumberMantissaDigits
the maximum number of digits to accept before the exponent in JSON numbers
- initialCharbufferSize
the initial size of the parser's Char buffer. Will grow to the max string length in the document rounded up to the next power of two
- final case class EncodingConfig(bufferSize: Int = 1024, allowBufferCaching: Boolean = true) extends Borer.EncodingConfig with Product with Serializable
- final case class TransDecodingConfig(readIntegersAlsoAsFloatingPoint: Boolean = true, readDoubleAlsoAsFloat: Boolean = false) extends Config with Product with Serializable
- readIntegersAlsoAsFloatingPoint
set to false to disable automatic conversion of integer to floating point values
- readDoubleAlsoAsFloat
set to false to disable automatic conversion of Double to Float values
- final case class TransEncodingConfig(maxBufferSize: Int = 16384, allowBufferCaching: Boolean = true, compressFloatingPointValues: Boolean = true) extends Borer.TransEncodingConfig with Product with Serializable
- maxBufferSize
the max number of transcoding elements (not bytes!) that can be buffered
- compressFloatingPointValues
set to false in order to always write floats as 32-bit values and doubles as 64-bit values, even if they could safely be represented with fewer bits
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def decode[T](value: T)(implicit p: Provider[T]): Api[DecodingConfig]
Entry point into the JSON decoding mini-DSL.
- def encode[T](value: T)(implicit arg0: Encoder[T]): JsonApi[T, EncodingConfig]
Entry point into the JSON encoding mini-DSL.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def reader[T](value: T, config: DecodingConfig = DecodingConfig.default, receiverWrapper: Wrapper[DecodingConfig] = Receiver.nopWrapper)(implicit p: Provider[T]): Reader
Constructs a new Reader that reads JSON from the given Input.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def transEncode[T](value: T)(implicit arg0: Encoder[T]): EncodingApi[TransEncodingConfig, TransDecodingConfig]
Entry point into the JSON transcoding mini-DSL.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writer(output: Output, config: EncodingConfig = EncodingConfig.default, receiverWrapper: Wrapper[EncodingConfig] = Receiver.nopWrapper): Writer
Constructs a new Writer that writes JSON to the given Output.
- object DecodingConfig extends Serializable
- object EncodingConfig extends Serializable
- object TransDecodingConfig extends Serializable
- object TransEncodingConfig extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated