Quantcast
Channel: Parse a case class containing an HList into a JSON string, using Circe - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Travis Brown for Parse a case class containing an HList into a JSON...

Yes, circe can do this, but you'll need to change your case class to make it hold on to more information about the HList:import shapeless._case class Foo[L <: HList](param1: String, param2: L)And...

View Article



Parse a case class containing an HList into a JSON string, using Circe

I'm doing a thing in Scala. I have the following case class:import shapeless._case class Foo(param1: String, param2: HList)I'd like to obtain a JSON representation of this type, using Circe. I'd also...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>