Package

com.rallyhealth.weejson

v1

Permalink

package v1

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. v1
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Arr(value: ArrayBuffer[Value]) extends Value with Product with Serializable

    Permalink
  2. trait AstTransformer[I] extends Transformer[I] with JsVisitor[I, I]

    Permalink
  3. sealed abstract class Bool extends Value

    Permalink
  4. sealed trait BufferedValue extends AnyRef

    Permalink

    A version of com.rallyhealth.weejson.v1.Value used to buffer data in raw form.

    A version of com.rallyhealth.weejson.v1.Value used to buffer data in raw form.

    This is used by the case class macros to buffer data for polymorphic types when the discriminator is not the first element, e.g. {"foo": 1, "$type": "discriminator"}. It is important that all types be immutable.

    May be superior to use in client code as well under some circumstances, e.g., when representing data from and to non-JSON types. For example, when piped through a Value, java.time.Instant will come out the other side as visitString rather than visitTimestamp, leading to potentially wasteful parsing/formatting. Other advantages are: immutable, more efficient number representation (BigDecimal has a lot of performance overhead when applied to smaller numeric types), and direct representation of binary and extension types (without assumed JSON byte array encoding).

    Most Visitor methods are represented by their own case classes. Exceptions are: - Float64String and UInt64 - along with Float64StringParts, represented as Num - Int32 - along with Int64, represented as NumLong - Float32 - along with Float64, represented as NumDouble - Char - along with String, represented as Str

    Therefore, when transforming from a BufferedValue, the specific visit methods for these will never be called (e.g., for integers, visitInt32 will never be called, only visitInt64).

  5. case class Num(value: BigDecimal) extends Value with Product with Serializable

    Permalink
  6. case class Obj(value: Map[String, Value]) extends Value with Product with Serializable

    Permalink
  7. case class Str(value: String) extends Value with Product with Serializable

    Permalink
  8. trait Transformer[I] extends AnyRef

    Permalink
  9. sealed trait Value extends FromInput

    Permalink

Value Members

  1. object Arr extends Serializable

    Permalink
  2. object Bool

    Permalink
  3. object BufferedValue extends Transformer[BufferedValue]

    Permalink
  4. object BufferedValueOps

    Permalink
  5. object False extends Bool with Product with Serializable

    Permalink
  6. object Null extends Value with Product with Serializable

    Permalink
  7. object Obj extends Serializable

    Permalink
  8. object True extends Bool with Product with Serializable

    Permalink
  9. object Value extends AstTransformer[Value]

    Permalink

    A very small, very simple JSON AST that weepickle uses as part of its serialization process.

    A very small, very simple JSON AST that weepickle uses as part of its serialization process. A common standard between the Jawn AST (which we don't use so we don't pull in the bulk of Spire) and the Javascript JSON AST.

Inherited from AnyRef

Inherited from Any

Ungrouped