JSON

object JSON extends LogSupport
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any

Type members

Classlikes

final case
class JSONArray(v: IndexedSeq[JSONValue]) extends JSONValue
final case
class JSONBoolean(v: Boolean) extends JSONValue
final case
class JSONDouble(v: Double) extends JSONNumber
final case
class JSONLong(v: Long) extends JSONNumber
case
object JSONNull extends JSONValue
sealed
trait JSONNumber extends JSONValue
final case
class JSONObject(v: Seq[(String, JSONValue)]) extends JSONValue
Companion
object
object JSONObject
Companion
class
final case
class JSONString(v: String) extends JSONValue
sealed
trait JSONValue

Value members

Concrete methods

def format(v: JSONValue): String

Format JSON value

Format JSON value

def parse(s: String): JSONValue

Parse JSON object or array

Parse JSON object or array

def parse(s: Array[Byte]): JSONValue

Parse JSON object or array

Parse JSON object or array

Parse JSON object or array

Parse JSON object or array

def parseAny(s: String): JSONValue

Parse any json values including null

Parse any json values including null

def parseAny(s: Array[Byte]): JSONValue

Parse any json values including null

Parse any json values including null

Parse any json values including null

Parse any json values including null

def quoteJSONString(s: String): String

This function can be used to properly quote Strings for JSON output.

This function can be used to properly quote Strings for JSON output.

Inherited methods

inline protected
def debug(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected
def debug(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected
def error(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected
def error(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected
def info(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected
def info(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected
def logAt(inline logLevel: LogLevel, inline message: Any): Unit
Inherited from
LoggingMethods
inline protected
def trace(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected
def trace(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected
def warn(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected
def warn(inline message: Any): Unit
Inherited from
LoggingMethods

Concrete fields