Package

ujson

Permalink

package ujson

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ujson
  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. class BaseByteRenderer[T <: Output] extends JsVisitor[T, T]

    Permalink

    A specialized JSON renderer that can render Bytes (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream

    A specialized JSON renderer that can render Bytes (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream

    Note that we use an internal ByteBuilder to buffer the output internally before sending it to out in batches. This lets us benefit from the high performance and minimal overhead of ByteBuilder in the fast path of pushing characters, and avoid the synchronization/polymorphism overhead of out on the fast path. Most outs would also have performance benefits from receiving data in batches, rather than elem by elem.

  4. class BaseCharRenderer[T <: Output] extends JsVisitor[T, T]

    Permalink

    A specialized JSON renderer that can render Chars (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream

    A specialized JSON renderer that can render Chars (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream

    Note that we use an internal CharBuilder to buffer the output internally before sending it to out in batches. This lets us benefit from the high performance and minimal overhead of CharBuilder in the fast path of pushing characters, and avoid the synchronization/polymorphism overhead of out on the fast path. Most outs would also have performance benefits from receiving data in batches, rather than elem by elem.

  5. sealed abstract class Bool extends Value

    Permalink
  6. final class ByteArrayParser[J] extends ByteParser[J]

    Permalink

    Basic ByteBuffer parser.

    Basic ByteBuffer parser.

    This assumes that the provided ByteBuffer is ready to be read. The user is responsible for any necessary flipping/resetting of the ByteBuffer before parsing.

    The parser makes absolute calls to the ByteBuffer, which will not update its own mutable position fields.

  7. final class ByteBufferParser[J] extends ByteParser[J]

    Permalink

    Basic ByteBuffer parser.

    Basic ByteBuffer parser.

    This assumes that the provided ByteBuffer is ready to be read. The user is responsible for any necessary flipping/resetting of the ByteBuffer before parsing.

    The parser makes absolute calls to the ByteBuffer, which will not update its own mutable position fields.

  8. abstract class ByteParser[J] extends BufferingByteParser

    Permalink

    A specialized JSON parse that can parse Bytes (Chars or Bytes), sending method calls to the given upickle.core.Visitor.

    A specialized JSON parse that can parse Bytes (Chars or Bytes), sending method calls to the given upickle.core.Visitor.

    Generally has a lot of tricks for performance: e.g. having duplicate implementations for nested v.s. top-level parsing, using an ByteBuilder to construct the CharSequences that visitString requires, etc.

  9. case class BytesRenderer(indent: Int = 1, escapeUnicode: Boolean = false) extends BaseByteRenderer[ByteArrayOutputStream] with Product with Serializable

    Permalink
  10. abstract class CharParser[J] extends BufferingCharParser

    Permalink

    A specialized JSON parse that can parse Chars (Chars or Bytes), sending method calls to the given upickle.core.Visitor.

    A specialized JSON parse that can parse Chars (Chars or Bytes), sending method calls to the given upickle.core.Visitor.

    Generally has a lot of tricks for performance: e.g. having duplicate implementations for nested v.s. top-level parsing, using an CharBuilder to construct the CharSequences that visitString requires, etc.

  11. case class IncompleteParseException(msg: String) extends Exception with ParsingFailedException with Product with Serializable

    Permalink
  12. sealed trait IndexedValue extends AnyRef

    Permalink

    A version of ujson.Value that keeps the index positions of the various AST nodes it is constructing.

    A version of ujson.Value that keeps the index positions of the various AST nodes it is constructing. Usually not necessary, but sometimes useful if you want to work with an AST but still provide source-index error positions if something goes wrong

  13. final class InputStreamParser[J] extends ByteParser[J] with BufferingInputStreamParser

    Permalink

    Parser that reads in bytes from an InputStream, buffering them in memory until a reset call discards them.

    Parser that reads in bytes from an InputStream, buffering them in memory until a reset call discards them.

    Mostly the same as ByteArrayParser, except using an UberBuffer rather than reading directly from an Array[Byte].

    Generally not meant to be used directly, but via ujson.Readable.fromReadable

  14. trait JsVisitor[-T, +J] extends Visitor[T, J]

    Permalink

    A Visitor specialized to work with JSON types.

    A Visitor specialized to work with JSON types. Forwards the not-JSON-related methods to their JSON equivalents.

  15. case class Num(value: Double) extends Value with Product with Serializable

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

    Permalink
  17. case class ParseException(clue: String, index: Int) extends Exception with ParsingFailedException with Product with Serializable

    Permalink
  18. sealed trait ParsingFailedException extends Exception

    Permalink
  19. trait Readable extends AnyRef

    Permalink
  20. trait ReadableLowPri extends AnyRef

    Permalink
  21. case class Renderer(out: Writer, indent: Int = 1, escapeUnicode: Boolean = false) extends BaseCharRenderer[Writer] with Product with Serializable

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

    Permalink
  23. case class StringRenderer(indent: Int = 1, escapeUnicode: Boolean = false) extends BaseCharRenderer[StringWriter] with Product with Serializable

    Permalink
  24. trait Transformer[I] extends AnyRef

    Permalink
  25. sealed trait Value extends Readable with Writable

    Permalink
  26. type Js = Value

    Permalink
    Annotations
    @deprecated
    Deprecated

    use ujson.Value

Value Members

  1. object Arr extends Serializable

    Permalink
  2. object Bool

    Permalink
  3. object ByteArrayParser extends Transformer[Array[Byte]]

    Permalink
  4. object ByteBufferParser extends Transformer[ByteBuffer]

    Permalink
  5. object CharSequenceParser extends Transformer[CharSequence]

    Permalink
  6. object False extends Bool with Product with Serializable

    Permalink
  7. object IndexedValue extends Transformer[IndexedValue]

    Permalink
  8. object InputStreamParser extends Transformer[InputStream]

    Permalink
  9. object Null extends Value with Product with Serializable

    Permalink
  10. object Obj extends Serializable

    Permalink
  11. object Readable extends ReadableLowPri

    Permalink
  12. object StringParser extends Transformer[String]

    Permalink
  13. object True extends Bool with Product with Serializable

    Permalink
  14. object Value extends AstTransformer[Value]

    Permalink

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

    A very small, very simple JSON AST that uPickle 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.

  15. object WebJson extends Transformer[Any]

    Permalink
  16. def copy(t: ujson.Value.Value): ujson.Value.Value

    Permalink
  17. def read(s: Readable, trace: Boolean = false): ujson.Value.Value

    Permalink

    Read the given JSON input as a JSON struct

  18. def reformat(s: Readable, indent: Int = 1, escapeUnicode: Boolean = false): String

    Permalink

    Parse the given JSON input and write it to a string with the configured formatting

  19. def reformatTo(s: Readable, out: Writer, indent: Int = 1, escapeUnicode: Boolean = false): Unit

    Permalink

    Parse the given JSON input and write it to a string with the configured formatting to the given Writer

  20. def reformatToByteArray(s: Readable, indent: Int = 1, escapeUnicode: Boolean = false): Array[Byte]

    Permalink
  21. def reformatToOutputStream(s: Readable, out: OutputStream, indent: Int = 1, escapeUnicode: Boolean = false): Unit

    Permalink

    Parse the given JSON input and write it to a string with the configured formatting to the given Writer

  22. def transform[T](t: Readable, v: Visitor[_, T]): T

    Permalink
  23. def validate(s: Readable): Unit

    Permalink

    Parse the given JSON input, failing if it is invalid

  24. def write(t: ujson.Value.Value, indent: Int = 1, escapeUnicode: Boolean = false): String

    Permalink

    Write the given JSON struct as a JSON String

  25. def writeTo(t: ujson.Value.Value, out: Writer, indent: Int = 1, escapeUnicode: Boolean = false): Unit

    Permalink

    Write the given JSON struct as a JSON String to the given Writer

  26. def writeToByteArray(t: ujson.Value.Value, indent: Int = 1, escapeUnicode: Boolean = false): Array[Byte]

    Permalink
  27. def writeToOutputStream(t: ujson.Value.Value, out: OutputStream, indent: Int = 1, escapeUnicode: Boolean = false): Unit

    Permalink

Deprecated Value Members

  1. val Js: Value.type

    Permalink
    Annotations
    @deprecated
    Deprecated

    use ujson.Value

Inherited from AnyRef

Inherited from Any

Ungrouped