A writer for iterative serialization of JSON keys and values.
Value parameters
- bbuf
-
a byte buffer for writing JSON data
- buf
-
an internal buffer for writing JSON data
- comma
-
a flag indicating if comma should precede the next element
- config
-
a writer configuration
- count
-
the current position in the internal buffer
- disableBufGrowing
-
a flag indicating if growing of the internal buffer is disabled
- indention
-
the current indention level
- limit
-
the last position in the internal buffer
- maxTop
-
a maximum offset of the stack top
- out
-
the output stream for writing JSON data
- stack
-
a pre-allocated stack of registers
- top
-
an offset of the stack top
Attributes
- Companion
- object
- Source
- JsonWriter.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Source
- JsonWriter.scala
Attributes
- Source
- JsonWriter.scala
Attributes
- Source
- JsonWriter.scala
Writes a JSON array end marker (]).
Writes a JSON array start marker ([).
Writes a Boolean value as a JSON key.
Writes a Boolean value as a JSON key.
Value parameters
- x
-
the
Booleanvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Byte value as a JSON key.
Writes a Byte value as a JSON key.
Value parameters
- x
-
the
Bytevalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Char value as a JSON key.
Writes a Char value as a JSON key.
Value parameters
- x
-
the
Charvalue to write
Attributes
- Throws
-
JsonCodecError
in the case of
Charvalue is a part of the surrogate pair - Source
- JsonWriter.scala
Writes a Short value as a JSON key.
Writes a Short value as a JSON key.
Value parameters
- x
-
the
Shortvalue to write
Attributes
- Source
- JsonWriter.scala
Writes an Int value as a JSON key.
Writes an Int value as a JSON key.
Value parameters
- x
-
the
Intvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Long value as a JSON key.
Writes a Long value as a JSON key.
Value parameters
- x
-
the
Longvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Float value as a JSON key.
Writes a Float value as a JSON key.
Value parameters
- x
-
the
Floatvalue to write
Attributes
- Throws
-
JsonCodecError
if the value is non-finite
- Source
- JsonWriter.scala
Writes a Double value as a JSON key.
Writes a Double value as a JSON key.
Value parameters
- x
-
the
Doublevalue to write
Attributes
- Throws
-
JsonCodecError
if the value is non-finite
- Source
- JsonWriter.scala
Writes a BigInt value as a JSON key.
Writes a BigInt value as a JSON key.
Value parameters
- x
-
the
BigIntvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a BigDecimal value as a JSON key.
Writes a BigDecimal value as a JSON key.
Value parameters
- x
-
the
BigDecimalvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a java.util.UUID value as a JSON key.
Writes a java.util.UUID value as a JSON key.
Value parameters
- x
-
the java.util.UUID value to write
Attributes
- Source
- JsonWriter.scala
Writes a String value as a JSON key.
Writes a String value as a JSON key.
Value parameters
- x
-
the
Stringvalue to write
Attributes
- Throws
-
JsonCodecError
if the provided string has an illegal surrogate pair
- Source
- JsonWriter.scala
Writes a java.time.Duration value as a JSON key.
Writes a java.time.Duration value as a JSON key.
Value parameters
- x
-
the java.time.Duration value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.Duration value as a JSON key.
Writes a java.time.Duration value as a JSON key.
Value parameters
- x
-
the java.time.Duration value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.LocalDate value as a JSON key.
Writes a java.time.LocalDate value as a JSON key.
Value parameters
- x
-
the java.time.LocalDate value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.LocalDateTime value as a JSON key.
Writes a java.time.LocalDateTime value as a JSON key.
Value parameters
- x
-
the java.time.LocalDateTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.LocalTime value as a JSON key.
Writes a java.time.LocalTime value as a JSON key.
Value parameters
- x
-
the java.time.LocalTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.MonthDay value as a JSON key.
Writes a java.time.MonthDay value as a JSON key.
Value parameters
- x
-
the java.time.MonthDay value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.OffsetDateTime value as a JSON key.
Writes a java.time.OffsetDateTime value as a JSON key.
Value parameters
- x
-
the java.time.OffsetDateTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.OffsetTime value as a JSON key.
Writes a java.time.OffsetTime value as a JSON key.
Value parameters
- x
-
the java.time.OffsetTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.Period value as a JSON key.
Writes a java.time.Period value as a JSON key.
Value parameters
- x
-
the java.time.Period value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.Year value as a JSON key.
Writes a java.time.Year value as a JSON key.
Value parameters
- x
-
the java.time.Year value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.YearMonth value as a JSON key.
Writes a java.time.YearMonth value as a JSON key.
Value parameters
- x
-
the java.time.YearMonth value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.ZonedDateTime value as a JSON key.
Writes a java.time.ZonedDateTime value as a JSON key.
Value parameters
- x
-
the java.time.ZonedDateTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.ZoneId value as a JSON key.
Writes a java.time.ZoneId value as a JSON key.
Value parameters
- x
-
the java.time.ZoneId value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.ZoneOffset value as a JSON key.
Writes a java.time.ZoneOffset value as a JSON key.
Value parameters
- x
-
the java.time.ZoneOffset value to write
Attributes
- Source
- JsonWriter.scala
Writes a String value that doesn't require encoding or escaping as a JSON key.
Writes a String value that doesn't require encoding or escaping as a JSON key.
Value parameters
- x
-
the
Stringvalue to write
Attributes
- Note
-
Use JsonWriter.isNonEscapedAscii for validation if the string is eligible for writing by this method.
- Source
- JsonWriter.scala
Writes a String value that doesn't require encoding or escaping as a JSON value.
Writes a String value that doesn't require encoding or escaping as a JSON value.
Value parameters
- x
-
the
Stringvalue to write
Attributes
- Note
-
Use JsonWriter.isNonEscapedAscii for validation if the string is eligible for writing by this method.
- Source
- JsonWriter.scala
Writes a JSON null value.
Writes a JSON array end marker (}).
Writes a JSON array start marker ({).
Writes a byte array as a JSON raw value.
Writes a byte array as a JSON raw value.
Value parameters
- bs
-
the byte array to write
Attributes
- Source
- JsonWriter.scala
Writes a BigDecimal value as a JSON value.
Writes a BigDecimal value as a JSON value.
Value parameters
- x
-
the
BigDecimalvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a BigInt value as a JSON value.
Writes a BigInt value as a JSON value.
Value parameters
- x
-
the
BigIntvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a java.util.UUID value as a JSON value.
Writes a java.util.UUID value as a JSON value.
Value parameters
- x
-
the java.util.UUID value to write
Attributes
- Source
- JsonWriter.scala
Writes a String value as a JSON value.
Writes a String value as a JSON value.
Value parameters
- x
-
the
Stringvalue to write
Attributes
- Throws
-
JsonCodecError
if the provided string has an illegal surrogate pair
- Source
- JsonWriter.scala
Writes a java.time.Duration value as a JSON value.
Writes a java.time.Duration value as a JSON value.
Value parameters
- x
-
the java.time.Duration value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.Instant value as a JSON value.
Writes a java.time.Instant value as a JSON value.
Value parameters
- x
-
the java.time.Instant value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.LocalDate value as a JSON value.
Writes a java.time.LocalDate value as a JSON value.
Value parameters
- x
-
the java.time.LocalDate value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.LocalDateTime value as a JSON value.
Writes a java.time.LocalDateTime value as a JSON value.
Value parameters
- x
-
the java.time.LocalDateTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.LocalTime value as a JSON value.
Writes a java.time.LocalTime value as a JSON value.
Value parameters
- x
-
the java.time.LocalTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.MonthDay value as a JSON value.
Writes a java.time.MonthDay value as a JSON value.
Value parameters
- x
-
the java.time.MonthDay value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.OffsetDateTime value as a JSON value.
Writes a java.time.OffsetDateTime value as a JSON value.
Value parameters
- x
-
the java.time.OffsetDateTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.OffsetTime value as a JSON value.
Writes a java.time.OffsetTime value as a JSON value.
Value parameters
- x
-
the java.time.OffsetTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.Period value as a JSON value.
Writes a java.time.Period value as a JSON value.
Value parameters
- x
-
the java.time.Period value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.Year value as a JSON value.
Writes a java.time.Year value as a JSON value.
Value parameters
- x
-
the java.time.Year value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.YearMonth value as a JSON value.
Writes a java.time.YearMonth value as a JSON value.
Value parameters
- x
-
the java.time.YearMonth value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.ZonedDateTime value as a JSON value.
Writes a java.time.ZonedDateTime value as a JSON value.
Value parameters
- x
-
the java.time.ZonedDateTime value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.ZoneId value as a JSON value.
Writes a java.time.ZoneId value as a JSON value.
Value parameters
- x
-
the java.time.ZoneId value to write
Attributes
- Source
- JsonWriter.scala
Writes a java.time.ZoneOffset value as a JSON value.
Writes a java.time.ZoneOffset value as a JSON value.
Value parameters
- x
-
the java.time.ZoneOffset value to write
Attributes
- Source
- JsonWriter.scala
Writes a Boolean value as a JSON value.
Writes a Boolean value as a JSON value.
Value parameters
- x
-
the
Booleanvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Byte value as a JSON value.
Writes a Byte value as a JSON value.
Value parameters
- x
-
the
Bytevalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Short value as a JSON value.
Writes a Short value as a JSON value.
Value parameters
- x
-
the
Shortvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Char value as a JSON key.
Writes a Char value as a JSON key.
Value parameters
- x
-
the
Charvalue to write
Attributes
- Throws
-
JsonCodecError
in the case of
Charvalue is a part of the surrogate pair - Source
- JsonWriter.scala
Writes an Int value as a JSON value.
Writes an Int value as a JSON value.
Value parameters
- x
-
the
Intvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Long value as a JSON value.
Writes a Long value as a JSON value.
Value parameters
- x
-
the
Longvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Float value as a JSON value.
Writes a Float value as a JSON value.
Value parameters
- x
-
the
Floatvalue to write
Attributes
- Throws
-
JsonCodecError
if the value is non-finite
- Source
- JsonWriter.scala
Writes a Double value as a JSON value.
Writes a Double value as a JSON value.
Value parameters
- x
-
the
Doublevalue to write
Attributes
- Throws
-
JsonCodecError
if the value is non-finite
- Source
- JsonWriter.scala
Writes a BigDecimal value as a JSON string value.
Writes a BigDecimal value as a JSON string value.
Value parameters
- x
-
the
BigDecimalvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a BigInt value as a JSON string value.
Writes a BigInt value as a JSON string value.
Value parameters
- x
-
the
BigIntvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Boolean value as a JSON string value.
Writes a Boolean value as a JSON string value.
Value parameters
- x
-
the
Booleanvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Byte value as a JSON string value.
Writes a Byte value as a JSON string value.
Value parameters
- x
-
the
Bytevalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Short value as a JSON string value.
Writes a Short value as a JSON string value.
Value parameters
- x
-
the
Shortvalue to write
Attributes
- Source
- JsonWriter.scala
Writes an Int value as a JSON string value.
Writes an Int value as a JSON string value.
Value parameters
- x
-
the
Intvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Long value as a JSON string value.
Writes a Long value as a JSON string value.
Value parameters
- x
-
the
Longvalue to write
Attributes
- Source
- JsonWriter.scala
Writes a Float value as a JSON string value.
Writes a Float value as a JSON string value.
Value parameters
- x
-
the
Floatvalue to write
Attributes
- Throws
-
JsonCodecError
if the value is non-finite
- Source
- JsonWriter.scala
Writes a Double value as a JSON string value.
Writes a Double value as a JSON string value.
Value parameters
- x
-
the
Doublevalue to write
Attributes
- Throws
-
JsonCodecError
if the value is non-finite
- Source
- JsonWriter.scala