package json
Facilitates populating graphs with nodes/edges from JSON text
and exporting Graph
instances to JSON text.
See also the Graph for Scala JSON User Guide.
- Alphabetic
- By Inheritance
- json
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package descriptor
These classes serve as meta-data controlling JSON import by
fromJson
and export bytoJson
.These classes serve as meta-data controlling JSON import by
fromJson
and export bytoJson
. Among all, the meta-data contain identifiers based on which JSON edges will be matched to edge classes andGraph
-specific serializers to be involved. - package error
Error/warning constants and message producing.
- package exp
Export of graphs to JSON text.
- package imp
Import of JSON text into graphs including the steps
Import of JSON text into graphs including the steps
- parsing (extracting and checking all data from JSON texts relevant to
Graph
) and InputStream
creation on the basis of parsing results in preparation of callingGraph.fromStream
.
- parsing (extracting and checking all data from JSON texts relevant to
- package serializer
Lift-JSON
Serializers
that convert from/to unnamed JSON values and edge data containers (parameters) covering all predefined edge types.Lift-JSON
Serializers
that convert from/to unnamed JSON values and edge data containers (parameters) covering all predefined edge types. They allow to save space as default Lift-JSON serializers would require the JSON text to contain JFields for every node and edge.
Type Members
- type Descriptor[N] = json.descriptor.Descriptor[N]
- type DiHyperEdgeDescriptor[N, E <: AbstractDiHyperEdge[N]] = json.descriptor.DiHyperEdgeDescriptor[N, E]
- type EdgeDescriptor[N, E <: AnyEdge[N]] = json.descriptor.EdgeDescriptor[N, E]
- type EdgeDescriptorBase[N, E <: Edge[N]] = json.descriptor.EdgeDescriptorBase[N, E]
- type HyperEdgeDescriptor[N, E <: AbstractHyperEdge[N]] = json.descriptor.HyperEdgeDescriptor[N, E]
- implicit final class JsonGraph[N, E <: Edge[N]] extends AnyVal
- implicit final class JsonGraphCoreCompanion[+G[N, E <: Edge[N]] <: AnyGraph[N, E] with GraphLike[N, E, G]] extends AnyVal
- type LEdgeDescriptor[N, E <: AnyEdge[N], L] = json.descriptor.LEdgeDescriptor[N, E, L]
- type NodeDescriptor[N] = json.descriptor.NodeDescriptor[N]
Value Members
- val Descriptor: json.descriptor.Descriptor.type
- def replacePlaceholders(source: String, params: Iterable[String], maxLength: Int = 50, paramPlaceholder: String = "{}"): String
Replaces all occurrences of
paramPlaceholder
in source with the elements inparams
one by one.Replaces all occurrences of
paramPlaceholder
in source with the elements inparams
one by one. The result is guaranteed not to become longer thanmaxLength
.