argonaut
package argonaut
- Alphabetic
- Public
- All
Type Members
- case class ACursor(either: Either[HCursor, HCursor]) extends Product with Serializable
- trait ACursors extends AnyRef
- trait Argonauts extends ACursors with CodecJsons with Contexts with ContextElements with Cursors with CursorHistorys with CursorOps with CursorOpElements with DecodeJsons with DecodeResults with EncodeJsons with HCursors with Jsons with JsonIdentitys with JsonObjects with PrettyParamss with StringWraps
- sealed abstract class CodecJson[A] extends EncodeJson[A] with DecodeJson[A]
- trait CodecJsonMacro extends AnyRef
- trait CodecJsons extends GeneratedCodecJsons
- sealed abstract class Context extends AnyRef
- sealed abstract class ContextElement extends Product with Serializable
- trait ContextElements extends AnyRef
- trait Contexts extends AnyRef
-
sealed abstract
class
Cursor extends Product with Serializable
Represents a position in a JSON value and allows moving around the JSON value.
Represents a position in a JSON value and allows moving around the JSON value. Also known as a "zipper." The cursor has a focus representing the current position being referred to by the cursor. Users may update the focus using
withFocus
(or the>->
alias) and move the cursor around withleft
,right
,field
,downArray
,downField
andup
. -
case class
CursorHistory(toList: List[CursorOp]) extends Product with Serializable
A list of elements denoting the history of a cursor.
A list of elements denoting the history of a cursor.
Note: Most recent operation appears at head of list.
- trait CursorHistorys extends AnyRef
- sealed abstract class CursorOp extends Product with Serializable
- case class CursorOpDeleteGoField(f: Json.JsonField) extends CursorOpElement with Product with Serializable
- case class CursorOpDownAt(p: (Json) ⇒ Boolean) extends CursorOpElement with Product with Serializable
- case class CursorOpDownField(f: Json.JsonField) extends CursorOpElement with Product with Serializable
- case class CursorOpDownN(n: Int) extends CursorOpElement with Product with Serializable
- sealed abstract class CursorOpElement extends Product with Serializable
- trait CursorOpElements extends AnyRef
- case class CursorOpField(f: Json.JsonField) extends CursorOpElement with Product with Serializable
- case class CursorOpFind(p: (Json) ⇒ Boolean) extends CursorOpElement with Product with Serializable
- case class CursorOpLeftAt(p: (Json) ⇒ Boolean) extends CursorOpElement with Product with Serializable
- case class CursorOpLeftN(n: Int) extends CursorOpElement with Product with Serializable
- case class CursorOpRightAt(p: (Json) ⇒ Boolean) extends CursorOpElement with Product with Serializable
- case class CursorOpRightN(n: Int) extends CursorOpElement with Product with Serializable
- case class CursorOpSetLefts(x: List[Json]) extends CursorOpElement with Product with Serializable
- case class CursorOpSetRights(x: List[Json]) extends CursorOpElement with Product with Serializable
- trait CursorOps extends AnyRef
- trait Cursors extends AnyRef
- trait DecodeJson[A] extends AnyRef
- trait DecodeJsonMacro extends AnyRef
- trait DecodeJsons extends GeneratedDecodeJsons
- case class DecodeResult[A](result: Either[(String, CursorHistory), A]) extends Product with Serializable
- trait DecodeResults extends AnyRef
- case class El(o: CursorOpElement, success: Boolean) extends CursorOp with Product with Serializable
-
trait
EncodeJson[A] extends AnyRef
Encode an arbitrary value as a JSON value.
-
trait
EncodeJsonKey[A] extends AnyRef
A typeclass for encode an arbitrary value as a JSON key.
A typeclass for encode an arbitrary value as a JSON key.
final case class Foo(value: String) object Foo { implicit val instance: EncodeJsonKey[Foo] = EncodeJsonKey.from(_.value) } EncodeJson.of[Map[Foo, Int]]
Example: - trait EncodeJsonMacro extends AnyRef
- trait EncodeJsonNumber[T] extends AnyRef
- trait EncodeJsons extends GeneratedEncodeJsons
- trait EncodePossibleJsonNumber[T] extends AnyRef
- trait GeneratedCodecJsons extends AnyRef
- trait GeneratedDecodeJsons extends AnyRef
- trait GeneratedEncodeJsons extends AnyRef
- case class HCursor(cursor: Cursor, history: CursorHistory) extends Product with Serializable
- trait HCursors extends AnyRef
-
sealed abstract
class
Json extends Product with Serializable
A data type representing possible JSON values.
- case class JsonBigDecimal(value: BigDecimal) extends JsonNumber with Product with Serializable
-
case class
JsonDecimal extends JsonNumber with Product with Serializable
A JsonDecimal represents and valid JSON number as a String.
A JsonDecimal represents and valid JSON number as a String. Unfortunately, there is no type in the Scala standard library which can represent all valid JSON decimal numbers, since the exponent may be larger than an
Int
. Such a number can still be round tripped (parser to printer). We lazily parse the string to aBigDecimal
or aDouble
on demand. - final class JsonIdentity[J] extends AnyVal
- trait JsonIdentitys extends AnyRef
- case class JsonLong(value: Long) extends JsonNumber with Product with Serializable
-
sealed abstract
class
JsonNumber extends AnyRef
JSON numbers with optimization by cases.
JSON numbers with optimization by cases. Note: Javascript numbers are 64-bit decimals.
-
sealed abstract
class
JsonObject extends AnyRef
A mapping from field to JSON value that maintains insertion order.
- trait JsonObjects extends AnyRef
-
trait
Jsons extends AnyRef
Constructors and other utilities for JSON values.
-
trait
Parse[A] extends AnyRef
Library functions for parsing json.
-
class
ParseWrap[A] extends AnyRef
Utility for building the argonaut API over various types.
Utility for building the argonaut API over various types. This is used to implement StringWrap, and it is expected that it would be used by integrations with other toolkits to provide an argonaut API on their types.
-
case class
PrettyParams(indent: String, lbraceLeft: String, lbraceRight: String, rbraceLeft: String, rbraceRight: String, lbracketLeft: String, lbracketRight: String, rbracketLeft: String, rbracketRight: String, lrbracketsEmpty: String, arrayCommaLeft: String, arrayCommaRight: String, objectCommaLeft: String, objectCommaRight: String, colonLeft: String, colonRight: String, preserveOrder: Boolean, dropNullKeys: Boolean) extends Product with Serializable
Parameters for pretty-printing a JSON value.
Parameters for pretty-printing a JSON value.
- indent
The indentation to use if any format strings contain a new line.
- lbraceLeft
Spaces to insert to left of a left brace.
- lbraceRight
Spaces to insert to right of a left brace.
- rbraceLeft
Spaces to insert to left of a right brace.
- rbraceRight
Spaces to insert to right of a right brace.
- lbracketLeft
Spaces to insert to left of a left bracket.
- lbracketRight
Spaces to insert to right of a left bracket.
- rbracketLeft
Spaces to insert to left of a right bracket.
- rbracketRight
Spaces to insert to right of a right bracket.
- lrbracketsEmpty
Spaces to insert for an empty array.
- arrayCommaLeft
Spaces to insert to left of a comma in an array.
- arrayCommaRight
Spaces to insert to right of a comma in an array.
- objectCommaLeft
Spaces to insert to left of a comma in an object.
- objectCommaRight
Spaces to insert to right of a comma in an object.
- colonLeft
Spaces to insert to left of a colon.
- colonRight
Spaces to insert to right of a colon.
- preserveOrder
Determines if field ordering should be preserved.
- dropNullKeys
Determines if object fields with values of null are dropped from the output.
- trait PrettyParamss extends AnyRef
-
sealed abstract
class
StringWrap extends AnyRef
Wraps a
String
value and provides methods, particularly for parsing. -
trait
StringWraps extends AnyRef
Constructors and other utilities for wrapped string values.
Value Members
- object ACursor extends ACursors with Serializable
- object Argonaut extends Argonauts
- object CodecJson extends CodecJsons with CodecJsonMacro
- object Context extends Contexts
- object ContextElement extends ContextElements with Serializable
- object Cursor extends Cursors with Serializable
- object CursorHistory extends CursorHistorys with Serializable
- object CursorOp extends CursorOps with Serializable
- object CursorOpDeleteGoFirst extends CursorOpElement with Product with Serializable
- object CursorOpDeleteGoLast extends CursorOpElement with Product with Serializable
- object CursorOpDeleteGoLeft extends CursorOpElement with Product with Serializable
- object CursorOpDeleteGoParent extends CursorOpElement with Product with Serializable
- object CursorOpDeleteGoRight extends CursorOpElement with Product with Serializable
- object CursorOpDeleteLefts extends CursorOpElement with Product with Serializable
- object CursorOpDeleteRights extends CursorOpElement with Product with Serializable
- object CursorOpDownArray extends CursorOpElement with Product with Serializable
- object CursorOpElement extends CursorOpElements with Serializable
- object CursorOpFirst extends CursorOpElement with Product with Serializable
- object CursorOpLast extends CursorOpElement with Product with Serializable
- object CursorOpLeft extends CursorOpElement with Product with Serializable
- object CursorOpRight extends CursorOpElement with Product with Serializable
- object CursorOpUp extends CursorOpElement with Product with Serializable
- object DecodeJson extends DecodeJsons with DecodeJsonMacro
- object DecodeResult extends DecodeResults with Serializable
- object EncodeJson extends EncodeJsons with EncodeJsonMacro
- object EncodeJsonKey
- object EncodeJsonNumber
- object HCursor extends HCursors with Serializable
- object Info
- object Json extends Jsons with Serializable
- object JsonIdentity extends JsonIdentitys
- object JsonNumber
- object JsonObject extends JsonObjects
- object JsonParser
-
object
Parse extends Parse[String]
Library functions for parsing json.
- object PrettyParams extends PrettyParamss with Serializable
- object Reattempt extends CursorOp with Product with Serializable
- object StringEscaping
- object StringWrap extends StringWraps