JsoniterScalaCodec

io.circe.JsoniterScalaCodec
See theJsoniterScalaCodec companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def asciiStringToJString[A](buf: Array[Byte], len: Int): Json

Converts an ASCII byte array to a JSON string.

Converts an ASCII byte array to a JSON string.

Value parameters

buf

the ASCII byte array

len

the length of the byte array

Attributes

Returns

a JSON string

def bigIntValue(c: HCursor): BigInt

Extracts a BigInt value from a JSON cursor.

Extracts a BigInt value from a JSON cursor.

Value parameters

c

the JSON cursor

Attributes

Returns

the BigInt value, or null if the cursor does not point to a number with an integer value

def jsonValue(x: BigInt): Json

Encodes a BigInt as a JSON number.

Encodes a BigInt as a JSON number.

Uses a JsonLong if the value fits in a Long, otherwise uses a JsonBigDecimal.

Value parameters

x

the BigInt to encode

Attributes

Returns

a JSON number representing the BigInt

def stringValue(c: HCursor): String

Extracts a String value from a JSON cursor.

Extracts a String value from a JSON cursor.

Value parameters

c

the JSON cursor

Attributes

Returns

the String value, or null if the cursor does not point to a string

Concrete fields

val defaultNumberParser: JsonReader => Json

Default number parser that detects integers vs floating-point values and chooses an appropriate JSON number representation.

Default number parser that detects integers vs floating-point values and chooses an appropriate JSON number representation.

Attributes

Returns

a JSON number value