fs2.data.json
Handles stream parsing and traversing of json documents.
Attributes
Members list
Packages
Contains a DSL to build a json selector.
Contains a DSL to build a json selector. Start a selector with root
and then chain the rest.
val sel = root.index(10).?.fields("a", "b").compile
Attributes
Type members
Classlikes
Attributes
- Companion
- trait
- Source
- selectors.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
IndexPredicate.type
A JSON trace context, positioning the current location in the JSON value starting from the root.
A JSON trace context, positioning the current location in the JSON value starting from the root.
Attributes
- Companion
- object
- Source
- JsonContext.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- JsonContext.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JsonContext.type
Attributes
- Source
- JsonException.scala
- Supertypes
Attributes
- Source
- JsonException.scala
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Source
- SelectorParser.scala
- Supertypes
Attributes
- Source
- package.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- selectors.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
NamePredicate.type
Used to select tokens in a token stream.
Used to select tokens in a token stream.
Attributes
- Companion
- object
- Source
- selectors.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class IndexSelectorclass IteratorSelectorclass NameSelectorclass PipeSelectorobject ThisSelector
Attributes
- Companion
- trait
- Source
- selectors.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Selector.type
Parses a filter string.
Parses a filter string. Syntax is as follows:
Selector ::= `.`
| Sel Sel*
Sel ::= `.` Name `!`? `?`?
| `.` `[` String (`,` String)* `]` `!`? `?`?
| `.` `[` Integer (`,` Integer)* `]` `?`?
| `.` `[` Integer `:` Integer `]` `?`?
| `.` `[` `]` `?`?
Name ::= [a-zA-Z_][a-zA-Z0-9_]*
String ::= <a json string>
Integer ::= 0
| [1-9][0-9]*
Attributes
- Companion
- object
- Source
- SelectorParser.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- SelectorParser.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SelectorParser.type
Attributes
- Companion
- object
- Source
- tokens.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object EndArrayobject EndObjectobject FalseValueclass Keyobject NullValueclass NumberValueobject StartArrayobject StartObjectclass StringValueobject TrueValueShow all
Attributes
- Companion
- class
- Source
- tokens.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Token.type
Json Token stream collectors.
Json Token stream collectors.
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
collector.type
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
literals.type
Json Token stream pipes to render Json values.
Json Token stream pipes to render Json values.
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
render.type
A collection of pipes to wrap streams inside objects.
A collection of pipes to wrap streams inside objects.
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
wrap.type
Value members
Concrete methods
Transforms a stream of characters into a stream of Json tokens.
Transforms a stream of characters into a stream of Json tokens. Emitted tokens are guaranteed to be valid up to that point. If the streams ends without failure, the sequence of tokens is sensured to represent a (potentially empty) sequence of valid Json documents.
Attributes
- Source
- package.scala
Deprecated methods
Filters the tokens according to the given selector sequence.
Filters the tokens according to the given selector sequence. if wrap
is set to true
then values selected by array selector are wrapped into an array, and values selected by object selector are wrapped into an object with original key maintained.
Attributes
- Deprecated
-
[Since version fs2-data 1.5.0]
Use `fs2.data.json.jsonpath.filter` instead - Source
- package.scala
Transforms a stream of Json values into a stream of Json tokens.
Transforms a stream of Json values into a stream of Json tokens.
This operation is the opposite of values
.
Attributes
- Deprecated
-
[Since version fs2-data 1.3.0]
Use `fs2.data.json.ast.tokenize` instead - Source
- package.scala
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function f
is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged.
This operator locally creates Json AST values using the fs2.data.json.ast.Builder, and returns tokens as emitted by the fs2.data.json.ast.Tokenizer on the resulting value.
Attributes
- Deprecated
-
[Since version fs2-data 1.3.0]
Use `fs2.data.json.ast.transform` instead - Source
- package.scala
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function f
is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged. The operation can fail, in case the returned F
is failed at one step.
This operator locally creates Json AST values using the fs2.data.json.ast.Builder, and returns tokens as emitted by the fs2.data.json.ast.Tokenizer on the resulting value.
Attributes
- Deprecated
-
[Since version fs2-data 1.3.0]
Use `fs2.data.json.ast.transformF` instead - Source
- package.scala
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function f
is called on every selected value from upstream, and the resulting value replaces it. If the function returns None
, then the entire value is dropped (and the object key it is located at, if any). The rest of the stream is left unchanged.
This operator locally creates Json AST values using the fs2.data.json.ast.Builder, and returns tokens as emitted by the fs2.data.json.ast.Tokenizer on the resulting value.
Attributes
- Deprecated
-
[Since version fs2-data 1.3.0]
Use `fs2.data.json.ast.transformOpt` instead - Source
- package.scala
Transforms a stream of Json tokens into a stream of json values.
Transforms a stream of Json tokens into a stream of json values.
Attributes
- Deprecated
-
[Since version fs2-data 1.3.0]
Use `fs2.data.json.ast.values` instead - Source
- package.scala
Implicits
Implicits
Attributes
- Source
- package.scala