Top "Json4s" questions

A single AST to be used by other scala json libraries

How can I convert a json string to a scala map?

I have a nested json whose structure is not defined. It can be different each time I run since I …

json scala jackson json4s
How to convert Row to json in Spark 2 Scala

Is there a simple way to converting a given Row object to json? Found this about converting a whole Dataframe …

json scala apache-spark json4s
Extract String value using json4s

I have following Scala console session for json4s, where I am trying to extract String value from a parsed …

scala json4s
Map[String,Any] to compact json string using json4s

I am currently extracting some metrics from different data sources and storing them in a map of type Map[String,…

scala json4s
Importing .jar files into Scala environment

Even after reading: Scala, problem with a jar file, I'm still a bit confused. I am trying to import some …

scala packaging json4s
How to parse and extract information from json array using json4s

I am currently trying to extract the information from a json array using json4s (scala). An example data is …

json scala json4s
How to read a json response from a akka-http response entity using json4s

I am trying to invoke the google geocoding api and retrieve the response. lazy val geoCodingConnectionFlow: Flow[HttpRequest, HttpResponse, Any] = …

json scala json4s akka-http
How to iterate org.json4s.JsonAST.JValue which is an array of JSON objects to separately work on each object in Scala?

I have a sample array: [{ "abc":"1", "de":"1" }, { "fgh":"2", "ij":"4" }] which is a org.json4s.JsonAST.JValue. How is it …

json scala json4s
Is it possible to make json4s not to throw exception when required field is missing?

Is it possible to make json4s not to throw exception when required field is missing ? When I "extract" object …

scala json4s
Serialize and Deserialize scala enumerations or case objects using json4s

Suppose I have an enumeration or sealed group of case objects as follows: sealed abstract class Status case object Complete …

scala json4s