com.spotify.scio.extra
Main package for JSON APIs. Import all.
This package uses Circe for JSON handling under the hood.
import com.spotify.scio.extra.json._ // define a type-safe JSON schema case class Record(i: Int, d: Double, s: String) // read JSON as case classes sc.jsonFile[Record]("input.json") // write case classes as JSON sc.parallelize((1 to 10).map(x => Record(x, x.toDouble, x.toString)) .saveAsJsonFile("output")
A wrapper for io.circe.Error that also retains the original input string.
Enhanced version of SCollection with JSON methods.
Enhanced version of ScioContext with JSON methods.
Main package for JSON APIs. Import all.
This package uses Circe for JSON handling under the hood.