I am using Either implementation for my object because I am expecting an empty Json for one of the parameter in the object. Here is the object: I a ...
I am using Either implementation for my object because I am expecting an empty Json for one of the parameter in the object. Here is the object: I a ...
running into some Json quirks. I am writing serialize-deserialize logic for an incoming request which contains an object in form of JSON which is Indi ...
I have a Kafka consumed record that will be parsed as JsValue with spray.json in scala, but I also have some data in the record's header, and I want t ...
I have a scenario similar to this: an Akka HTTP service calls another service and performs some transformations on its JSON response. Let's say it rep ...
I am making a http request: How do I use the response in the success scenerio and deserialize to my case class for User? ...
I am new to mongo db, I am trying to insert a vector of documents into MongoDb from an external source(cloud database). I want to add the timestamp of ...
I have a file, each row is a json array. I reading each line of the file, and trying to convert the rows into a json array, and then for each element ...
I have objects which have similar structure like The above mentioned classes are used to populate data from external API call: Caller The abo ...
First Attempt: So far I have tried spray-json. I have: Now, for serializing and deserializing my Base type, I have the code: The problem is tha ...
I have one route: He work with case class: Is there a way to make a route that can receive any JSON objects? ...
I need to create a meta for a spray.json.JsValue (which is actually an Option[JsValue] in my model class) for inserting it in a table with a JSON fiel ...
Using elastic4s 7.12.1 with spray-json 1.3.6 (and scala 2.13.5): Is there a way to read the _id of an Elasticsearch document into a field, e.g . id, ...
I have a situation where I have to have this case class Config[F[_]](pattern: String, format:F[String]), because sometimes the format should be presen ...
I am new to Scala and writing test cases using Scala test and spray json. My code is as follows: I am getting following error on running test case ...
I am new to scala and writing test cases using scala test and spray json. My code is as follows. On doing sbt test I am geting following error H ...
I have a case class with string list fields and I can't achieve to parse it from JSON. I've defined a JSON Reader : val jsonReader = new JsonReader ...
I'm looking for a solution to this but for json spray and my searches and attempts to get this working with json spray have failed thus far. If I hav ...
I'm using json-spray library to unmarshall a json array. Here is the code. The remote server writes its response as a json array. No problems if th ...
I am new to scala. I have one parameter which can be either string, boolean or number. I don't know before which data type will come. Earlier for numb ...
I have newly started working on scala. I have following json array: I am trying to retrieve json from this array on the basis of id. For example, i ...