ujson
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Visitor[I, I]trait Transformer[I]trait Transformer[I]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object Value.type
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 byte by byte.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class BytesRenderer
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BaseByteRenderer.type
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 char by char.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class Rendererclass StringRenderer
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BaseCharRenderer.type
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.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
trait Transformer[Array[Byte]]class Objecttrait Matchableclass Any
- Self type
-
ByteArrayParser.type
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.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
ByteBufferParser.type
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.
Attributes
- Supertypes
-
trait BufferingByteParserclass Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BaseByteRenderer[ByteArrayOutputStream]trait Visitor[ByteArrayOutputStream, ByteArrayOutputStream]class Objecttrait Matchableclass AnyShow all
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.
Attributes
- Supertypes
-
trait BufferingCharParserclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Transformer[CharSequence]trait Transformer[CharSequence]class Objecttrait Matchableclass Any
- Self type
-
CharSequenceParser.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DoubleToDecimalByte.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DoubleToDecimalChar.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FloatToDecimalByte.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FloatToDecimalChar.type
Attributes
- Supertypes
-
trait Producttrait Equalstrait ParsingFailedExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
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
Attributes
- Companion
- object
- Supertypes
-
trait BufferingInputStreamParserclass ByteParser[J]trait BufferingByteParserclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Transformer[InputStream]trait Transformer[InputStream]class Objecttrait Matchableclass Any
- Self type
-
InputStreamParser.type
A Visitor specialized to work with JSON types. Forwards the not-JSON-related methods to their JSON equivalents.
A Visitor specialized to work with JSON types. Forwards the not-JSON-related methods to their JSON equivalents.
Attributes
- Supertypes
-
trait Visitor[T, J]class Objecttrait Matchableclass Any
- Known subtypes
-
trait AstTransformer[I]object Value.typeclass BaseByteRenderer[T]class BytesRendererclass BaseCharRenderer[T]class Rendererclass StringRendererobject Builder.typeShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MathUtilsByte.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MathUtilsChar.type
Attributes
- Supertypes
-
trait Producttrait Equalstrait ParsingFailedExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class IncompleteParseExceptionclass ParseException
Attributes
- Companion
- trait
- Supertypes
-
trait Transformer[Readable]trait Transformer[Readable]trait ReadableLowPriclass Objecttrait Matchableclass AnyShow all
- Self type
-
Readable.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Readable.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BaseCharRenderer[Writer]trait Visitor[Writer, Writer]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
StringParser.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BaseCharRenderer[StringWriter]trait Visitor[StringWriter, StringWriter]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Transformer[I]class Objecttrait Matchableclass Any
- Known subtypes
-
trait AstTransformer[I]object Value.typeobject ByteArrayParser.typeobject ByteBufferParser.typeobject CharSequenceParser.typeobject IndexedValue.typeobject InputStreamParser.typeobject Readable.typeobject StringParser.typeShow all
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.
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.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrortrait AstTransformer[Value]trait Transformer[Value]trait Transformer[Value]class Objecttrait Matchableclass AnyShow all
- Self type
-
Value.type
Deprecated classlikes
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
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
Attributes
- Companion
- object
- Deprecated
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Deprecated
- true
- Supertypes
-
trait Sumtrait Mirrortrait Transformer[IndexedValue]trait Transformer[IndexedValue]class Objecttrait Matchableclass AnyShow all
- Self type
-
IndexedValue.type
Value members
Concrete methods
Read the given JSON input as a JSON struct
Read the given JSON input as a JSON struct
Attributes
Parse the given JSON input and write it to a string with the configured formatting
Parse the given JSON input and write it to a string with the configured formatting
Attributes
Parse the given JSON input and write it to a string with the configured formatting to the given Writer
Parse the given JSON input and write it to a string with the configured formatting to the given Writer
Attributes
Parse the given JSON input and write it to a string with the configured formatting to the given Writer
Parse the given JSON input and write it to a string with the configured formatting to the given Writer
Attributes
Parse the given JSON input, failing if it is invalid
Parse the given JSON input, failing if it is invalid
Attributes
Write the given JSON struct as a JSON String
Write the given JSON struct as a JSON String
Attributes
Write the given JSON struct as a JSON String to the given Writer
Write the given JSON struct as a JSON String to the given Writer