Skip to content

Instantly share code, notes, and snippets.

@ThomasAlexandre
Created September 23, 2015 21:10
Show Gist options
  • Save ThomasAlexandre/479296531299b6a39a2c to your computer and use it in GitHub Desktop.
Save ThomasAlexandre/479296531299b6a39a2c to your computer and use it in GitHub Desktop.
import io.circe._, io.circe.generic.auto._, io.circe.jawn._, io.circe.syntax._
case class WIFI(network:String,password:String)
val myWifi = WIFI("Scala","My_Wifi_Password")
myWifi.asJson
myWifi.asJson.noSpaces // will return a String "{"password":"My_Wifi_Password","network":"Scala"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment