ml.combust.bundle

json

package json

Provides traits and objects for handling Bundle.ML JSON data with Spray JSON.

Overview

ml.combust.bundle.json.JsonSupport provides all spray.json.JsonFormat formats. Either import or mixin the formats into scope in order to use them.

scala> import ml.bundle.json.JsonSupport._
       import spray.json._
       import ml.bundle._
       val tt = TensorType.TensorType(BasicType.BasicType.DOUBLE, Seq(-1))
       val underlying = DataType.DataType.Underlying.Tensor(tt)
       val dataType = DataType.DataType(underlying)
scala> val jsonString = dataType.toJson.prettyPrint
jsonString: String =
{
  "type": "tensor",
  "tensor": {
  "base": "double",
  "dimensions": [-1]
  }
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait JsonLowPrioritySupport extends AnyRef

    Low priority implicit spray.

  2. trait JsonSupport extends JsonLowPrioritySupport

    All spray.

Value Members

  1. object JsonSupport extends JsonSupport

Inherited from AnyRef

Inherited from Any

Ungrouped