Top "Spray-json" questions

Relates to the spray-json Scala library.

Get JSON object from AJAX call

I'm new to AJAX and javascript. In my project, I have to get a json object in my javascript file. …

javascript jquery ajax json spray-json
Spray-Json: How to parse a Json Array?

I'm new to the Spray-Json API and I'm trying to parse a Json response from the Docker REST API. There …

json scala spray-json
Spray-json deserializing nested object

How to deserialize nested objects correctly in spray-json? import spray.json._ case class Person(name: String) case class Color(n: …

json scala spray-json
How to represent optional fields in spray-json?

I have an optional field on my requests: case class SearchRequest(url: String, nextAt: Option[Date]) My protocol is: object …

scala spray-json
Cannot find an implicit ExecutionContext. You might pass spray scala

I have this two erros: Error:(39, 20) Cannot find an implicit ExecutionContext. You might pass an (implicit ec: ExecutionContext) parameter to …

scala spray-json spray-client argonaut
how to serialize case classes with traits with jsonspray

I understand that if I have: case class Person(name: String) I can use object PersonJsonImplicits extends DefaultJsonProtocol { implicit val …

scala spray spray-json
Serialize Map[String, Any] with spray json

How do I serialize Map[String, Any] with spray-json? I try val data = Map("name" -> "John", "age" -&…

scala spray-json
could not find implicit value for parameter marshaller: spray.httpx.marshalling.ToResponseMarshaller

I'm using val akkaV = "2.2.3" val sprayV = "1.2.0" Seq( "io.spray" % "spray-can" % sprayV, "io.spray" % "spray-routing" % sprayV, "io.spray" %% "spray-json" % "1.2.5", "io.spray" % "…

scala spray spray-json
How to expose REST service for JSON?

I need to expose a Spray service that accepts JSON payload. Where can I find a sample that would demonstrate …

scala spray spray-json
could not find implicit value for evidence parameter of type ^

I am trying to write a test for a Post request here is my code : val request = CreateLinkRequest(token = Some(…

scala spray-json