score:1
silly me, i had imported the wrong type. once i imported the right type, this works. hope the code helps someone else.
Source: stackoverflow.com
Related Query
- How to define a JSON format for an object with nested generic types?
- How to define an implicit deserializer using Play Json for generic types
- How do I define Json format for a case class with more than one apply method?
- How do I write a JSON Format for an object in the Java library that doesn't have an apply method?
- (Play 2.5) How do you define json format for type alias of an Option?
- How to unmarshall JSON object with multiple value types
- How do I define json writer for custom object in Play + Scala?
- Play 2.1 Scala - JSON - Symmetric Format object with nested data structure not serializing correctly
- How to parse JSON containing a property with different data types into a generic class in Scala?
- How to avoid overloading a method with Scala types for generic Spark RDD?
- json4s is faling with NPE, what can be the proper format for nested json
- Define Reads for JSON property with a value which itself is a serialized JSON object of possibly null value
- How to define format for both Y and List[X] in Play JSON when X extends from Y and Y is trait?
- Noise free JSON format for sealed traits with Play 2.2 library
- How to respond with a pretty-printed JSON object using play framework?
- How to write a Play JSON writes converter for a case class with a single nullable member
- In Scala, how can I define a companion object for a class defined in Java?
- How to validate for nullable types using json schema validator?
- How to bypass or satisfy scala generic types for Thrift classes
- Play 2.2 JSON Reads with combinators: how to deal with nested optional objects?
- How come I can define generic exception types in Scala?
- How do you create Json object with values of different types?
- Circe generic codec derivation for records with object keys
- How to define implicit class for Traversable with CanBuildFrom?
- How to make generic UDF for Array of arbitrary types
- How to define a max function for every type with a method ">"?
- How to convert nested JSON to map object in scala
- How to read a Json file with a specific format with Spark Scala?
- How to write a scalaz.IsEmpty parameter for generic types
- How to read and write Anorm object with the new JSON API in Play Framework 2.1-RC2?
More Query from same tag
- "Class org.apache.hadoop.fs.s3a.S3AFileSystem not found" on fatjar with sbt assembly
- Scala : EndoMonoids Function composition and Associativity Rules
- How to change classpath in Scala Worksheet in IDEA?
- Replace column values based on the max Spark Scala
- Why don't Scala Lists have an Ordering?
- Play: How to transform JSON while writing/reading it to/from MongoDB
- how to test a function that returns Dataset[String, T]
- How to groupBy using multiple columns in scala collections
- Play compilation error: cannot access Function0
- Any advantages in putting code in build.scala over build.sbt?
- how to set number of forked JVMs for integration tests?
- Runtime "could not find implicit value for parameter" error when using Scala's builder idiom
- Scala Play 2.0: Is it possible to use case classes in "routes"
- Couchbase Java SDK: concurrent timeout exception
- Neo4j embedded online backup from Java
- Windows PATH variable is different if whether running CMD as admin or not
- sparkerror: total size of serialized results of yyyx tasks (2.0 gb) is bigger than spark.driver.maxresultsize (2.0 gb)
- onMethod() in Scala (observer pattern)
- java.lang.NoClassDefFoundError: org/vafer/jdeb/Console when starting intellij sbt project
- error: not enough arguments for method withColumn: Scala spark
- .zip three futures in Scala
- sparkSQL dataframe how to split to some column
- Apache Spark: Classloader cannot find classDef in the jar
- How can I keep a multi-threaded Java/Scala application running?
- partition a list based on a text in the file name
- Propagate new version of file(jar/.py) to airflow
- Producing a partially applied function from method of type in an Option
- How to handle null values when a method doesn't return an Option?
- spark scala how can I calculate days since 1970-01-01
- Why can't stringify convert back to json after parse